wassimj / topologicsverchok Goto Github PK
View Code? Open in Web Editor NEWTopologic custom nodes for sverchok on Blender3D
License: GNU Affero General Public License v3.0
Topologic custom nodes for sverchok on Blender3D
License: GNU Affero General Public License v3.0
I would lik to ask if somebody could tell me how to set the Openstudio Binary Path on (Arch)Linux. I have the Openstudio Python bindings installed. Is it enough to set the path to libopenstudiolib.so? Is it really needed to install the entire Openstudio Suite to execute the simulation?
I get the following error when I try to install Topologic to Sverchok:
Report:
Error
Hi !
I'm trying to install TopologicSverchok on Mac.
On import, file init.py can't fint topologic, here is the console error :
Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.4/scripts/modules/addon_utils.py", line 333, in enable
mod = import(module_name)
File "/Users/sce/Library/Application Support/Blender/3.4/scripts/addons/TopologicSverchok-main/init.py", line 49, in
from topologic import Vertex, Edge, Wire, Face, Shell, Cell, CellComplex, Cluster, Topology
ImportError: cannot import name 'Vertex' from 'topologic' (unknown location)
The node fails and gives out the following error message:
“TypeError(‘processItem() takes 1 positional argument but 2 were given’)”
When will there be an option for Windows?
They are for Grasshoppers...
Hello. I'm trying to install it on Windows on different Blender versions and I get an error:
Traceback (most recent call last):
File "............. \ 3.0 \ scripts \ modules \ addon_utils.py", line 351, in enable
mod = import __ (module_name)
File ".............. \ 3.0 \ scripts \ addons \ topologicsverchok \ __ init.py", line 56, in
import topologic
ImportError: DLL load failed while importing topologic: The specified procedure could not be found.
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\addon_utils.py", line 351, in enable
mod = import(module_name)
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok_init_.py", line 60, in
import topologic
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\topologic-0.5-py3.9.egg\topologic_init_.py", line 29, in
import cppyy
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\cppyy_init_.py", line 74, in
from ._cpython_cppyy import *
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\cppyy_cpython_cppyy.py", line 20, in
c = loader.load_cpp_backend()
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\cppyy_backend\loader.py", line 85, in load_cpp_backend
raise RuntimeError("could not load cppyy_backend library, details:\n%s" %
RuntimeError: could not load cppyy_backend library, details:
Could not find module 'libcppyy_backend.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Could not find module 'C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\cppyy_backend\lib\libcppyy_backend.cp39-win_amd64.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
[WinError 1114] Eine DLL-Initialisierungsroutine ist fehlgeschlagen
Could not find module 'libcppyy_backend.cp39-win_amd64.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
zip file was 270 MB and not 400MB ?
Lukas
Hi, i would like to know if there is any way of changing the U/V direction of individual faces? For example i have multiple different cellcomplexes and i would like to automatically add doors to the internal vertical faces. For that purpose i use the Face.VertexByParameters node on the internal vertical Faces. But the problem is that when i want to have those Vertex at U = 0.5 and V = 0 the Vertex are not all on the Bottom of their faces. Some are on top, on the side or on the Bottom.
Does somebody know of a way to influence (correct) the U/V direction of those faces? I would like them to be all the same (V pointing upwards).
I'm currently working through the Topologicpy Energy tutorial. I started with the YouTube video but moved on to the notebook here on git hub. I'm running into a bit of trouble: "EnergyModel.ByTopology - Error: The openstudio model is null. Returning None" and also when trying to export the model: "AttributeError: 'NoneType' object has no attribute 'save'". I have the path to OpenStudio defined as: osBinaryPath = r"C:\openstudioapplication-1.5.0\bin\OpenStudioApp.exe" (also tried "openstudio.exe" in the same directory), and the outputFolder = r"C:\Users\anyde\Documents\PythonTutorials\TopologicPy\EnergyModels"
Hi,
I just downloaded the latest release, but when I try to enable it in blender it throws this error:
Traceback (most recent call last):
File "/usr/share/blender/3.1/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "/home/sanzo/.config/blender/3.1/scripts/addons/topologicsverchok/__init__.py", line 56, in <module>
import topologic
ImportError: /home/sanzo/.config/blender/3.1/scripts/addons/topologicsverchok/site-packages/topologic-linux/./libTopologicCore.so.0: file too short
the file is 25 bytes in size and contains the "libTopologicCore.so.0.0.0" text.
Obviously this should be a link, and indeed replacing it to a symlink to libTopologicCore.so.0.0.0
solves this error, but another one appears:
Traceback (most recent call last):
File "/usr/share/blender/3.1/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "/home/sanzo/.config/blender/3.1/scripts/addons/topologicsverchok/__init__.py", line 56, in <module>
import topologic
ImportError: libTKernel.so.7: cannot open shared object file: No such file or directory
I don't know much about C++ compliation, but it seems there's something broken in the build toolchain.
Also, why there are both topologic
and topologic-linux
packages in the site-packages
folder? they seem to be identical in size and file contents.
Latest MacOS release (2022-03-07) + Blender 3.0
On trying to activate I get the following error:
Traceback (most recent call last):
File "/Applications/Blender 3.0.1.app/Contents/Resources/3.0/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "/Users/palazzo/Library/Application Support/Blender/3.0/scripts/addons/topologicsverchok/__init__.py", line 56, in <module>
import topologic
ImportError: dlopen(/Users/palazzo/Library/Application Support/Blender/3.0/scripts/addons/topologicsverchok/site-packages/topologic/topologic.cpython-39-darwin.so, 0x0002): Library not loaded: libTopologicCore.0.0.0.dylib
Referenced from: /Users/palazzo/Library/Application Support/Blender/3.0/scripts/addons/topologicsverchok/site-packages/topologic/topologic.cpython-39-darwin.so
Reason: tried: 'libTopologicCore.0.0.0.dylib' (relative path not allowed in hardened program), '/usr/lib/libTopologicCore.0.0.0.dylib' (no such file)
Hi, thank you very much for your impressive work. You are doing an incredible gift for the opensource community. I am new to topologic and i would love to get some information to how to get started with this addon. If you would qve some spare time i would greatly appreciate if you could upload a small video or sone general instructions ( possibly with examples) on how to use this addon in general. I know that this is WIP but it already seems quiet usable. Thanks again.
I get this message in Blender Log:
Topologic - Warning: Could not import ladybug/honeybee/json so some related nodes are not available.
Topologic - Warning: Could not import ladybug/honeybee/json so some related nodes are not available.
Topologic - Warning: Could not import ladybug/honeybee/json so some related nodes are not available.
Which package do i need to install?
pip install json gives:
ERROR: Could not find a version that satisfies the requirement json
ERROR: No matching distribution found for json
Hi, i just want to report that there is an error because of the latest changes to Sverchok:
Traceback (most recent call last):
File "/usr/share/blender/3.3/scripts/modules/addon_utils.py", line 333, in enable
mod = import(module_name)
File "/home/sinasta/.config/blender/3.3/scripts/addons/TopologicSverchok-main/init.py", line 418, in
imported_modules = make_node_list()
File "/home/sinasta/.config/blender/3.3/scripts/addons/TopologicSverchok-main/init.py", line 413, in make_node_list
module = importlib.import_module(f".{module_name}", base_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/sinasta/.config/blender/3.3/scripts/addons/TopologicSverchok-main/nodes/Topologic/GraphExportToDGCNN.py", line 5, in
from sverchok.core.socket_data import SvGetSocketInfo
ImportError: cannot import name 'SvGetSocketInfo' from 'sverchok.core.socket_data' (/home/sinasta/.config/blender/3.3/scripts/addons/sverchok-master/core/socket_data.py)
the error is most lkely caused by the changes introduced to Sverchok in this commit
Hi, I am trying to install Topologic on Blender in Ubuntu. However, i get this error
File "/home/arun/Apps/blender-2.93.8-linux-x64/2.93/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
ModuleNotFoundError: No module named 'TopologicSverchok-0
I have tried this with blender 2.93, 3.0 and 3.1 and sverchok with all the extra nodes installed (have removed FreeCAD library though)
i get this error when trying to activate the latest version of topologic sverchok:
Traceback (most recent call last):
File "/usr/share/blender/3.2/scripts/modules/addon_utils.py", line 335, in enable
mod = import(module_name)
File "/home/sinasta/.config/blender/3.2/scripts/addons/TopologicSverchok-main/init.py", line 383, in
imported_modules = make_node_list()
File "/home/sinasta/.config/blender/3.2/scripts/addons/TopologicSverchok-main/init.py", line 378, in make_node_list
module = importlib.import_module(f".{module_name}", base_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'topologicsverchok.nodes.Topologic.IFCExportToHBJSON'
Topologic cannot be activated because of missing honeybee module. Can this dependency be installed automatically?
Hello, thanks for your work.
I'am getting this error when i try to install your addon on arch linux (manjaro).
I am using python 3.9 and blender 3.0 with a system installation (means blender is using my systems python packages instead of its own).
Traceback (most recent call last):
File "/usr/share/blender/3.0/scripts/modules/addon_utils.py", line 330, in enable
importlib.reload(mod)
File "/usr/lib/python3.9/importlib/init.py", line 169, in reload
_bootstrap._exec(spec, module)
File "", line 613, in _exec
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/sinasta/.config/blender/3.0/scripts/addons/topologicsverchok-main/init.py", line 40, in
topologicEggName = '/'+[name for name in os.listdir(win_prefix+'/topologicPy/site-packages') if name.startswith('topologic')][0]
FileNotFoundError: [Errno 2] No such file or directory: '/home/sinasta/.config/blender/3.0/scripts/addons/topologicsverchok-main/topologicPy/site-packages'
epic effort @wassimj , as a windows user i'm going to have to abstractly discuss this.
"""
in verts s
out objects s
"""
class derp(object):
def __init__(self, holds="Nothing"):
self.typed = holds
def __repr__(self):
return self.typed
F = derp("choopt")
G = derp("okaloo")
objects.extend([F, G])
rather than adjusting SvStethoscope node, i'm going to ask you if you've tried adding a __repr__
to the classes/objects you're passing around in Sverchok. That way you can control in a more granular way what Sverchok prints upon encountering your objects in SvStethoscope.
Is there any reference information available for the Topologic nodes? On the main Topologic website (topologic.app) the link to user documentation only leads me to the SDK. With almost 60 nodes, I'm trying to find out what they each are supposed to do, and where they interact in the system.
I have read the conference paper Topologic: Tools to explore architectural topology and I found the ideas very interesting. Figure 1 was especially informative. I'm now looking for the information to help me link the theory with the practical side, ie. Topologic/Sverchok.
I am also trying to convert the published tutorials using Dynamo to the Blender/Sverchok ecosystem so that I can have some idea what the software can do. Any help would be appreciated.
Francis Sim
I would like to have menu icons for topologic for ease of use. I don't know if that is already on the way to implementation. This could save users from some pain reading down the huge node menu to find a node:)
From the setup file:
if platform == 'linux' or platform == 'linux2' or platform == 'darwin':
conda = '/opt/anaconda3/envs'
My setup:
System: Ubuntu 21.04
Blender: 2.93.0 Beta (Appimage)
Blender Python version: 3.9
Why is it necessary to install Anaconda to run this addon? I have already installed topologicPy with no problems, but your init.py setup won't run without Anaconda. The setup is also looking for the /opt directory in my home directory:
FileNotFoundError: [Errno 2] No such file or directory: '/home/scotus/opt/anaconda3/envs'
Hello Wassim,
It seems like CellDictionary selectors are not rotated with the Cellcomplex when Topology.Rotate is used.
if the rotation is below a certain threshold (very low ~1-5 degrees) then the dictionaries stay correct.
This is why i assume that the Dictionary selectors are not rotated with the Cellcomplex. I think in general all the selectors should be affected by transformations of the Supertopology. But It could be that i just don't understand the purpose of them not beeing roatated. If so, i would love to know a way to properly rotate them with the supertopology.
Thanks a lot!
Hello Wassim i want to do some energy simulations with topologicsverchok on a dataset of apartment cellcomplexes i generated beforehand. While trying this i realised a number of questions and potential bugs. I hope this is the right channel to post them:
But when i try to replace the OSMTemplate-OfficeBuilding-3.2.0.osm file with the ASHRAEMidriseApartment.osm file or the ASHRAESecondarySchool.osm file an arror appears during the generation of the energymodel by topology:
[ERROR] topologicsverchok.nodes.Topologic.EnergyModelByTopology:70 : tuple index out of range
I suppose that there must be a difference between the working office.osm file and the two others which throw the same error no matter wich space types i assign to the cells.
linked to the eroor befor i would like to ask if there is an existing database of osm template files from which i could download the appropriate one for my use case (space types like: Kitchen, living, bathroom etc in a lowrise resedential building)? If there is not such an database could you maybe provide me with an instruction how to create such an template file?
my third question is more of an understanding question: in the EnergyModel.ByTopology node one can specify the room name Key and the room type Key (Name, Type by default). Does the dictionary keys have to stay Name and Type or could i name them ep_name and ep_type for example?
Thanks a lot!
The v.0.8.1.7 alpha release for windows is missing files.
Hello,
I would like to know if somebody has experimented with combining the evolver node from sverchok (Evolutionary Solver, similar to galapagos GH) and Topologic to generate parametric floor-plans (the floorplans could take a relation graph as instructions). Some Examples from Grasshopper:
https://www.youtube.com/watch?v=xIOzF05ZYeU
https://www.youtube.com/watch?v=oUaLOr0cS6M
https://www.youtube.com/watch?v=6tdx_js0Gtc
https://www.youtube.com/watch?v=FC7mJqvcdcE
https://www.youtube.com/watch?v=w6Vs3RZX-1Q
In general i think that Topologic could benefit from the interaction with some 'learning/intelligent' algorithms (evolutionary, ml) even though my opinion is not really fact-based as i don't know enough about the technical parts yet.
I would be really greatful for any answers or discussion.
Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.5/scripts/modules/addon_utils.py", line 333, in enable mod = import (module name)
ModuleNotFoundError: No module named 'TopologicSverchok-v'
The latest MacOS release is built with Python 3.9, but Blender 3.1 uses Python 3.10. Therefore, activation fails:
The following error appears when trying to activate Topologic:
Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.1/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "/Users/palazzo/Library/Application Support/Blender/3.1/scripts/addons/topologicsverchok/__init__.py", line 57, in <module>
from topologic import Vertex, Edge, Wire, Face, Shell, Cell, CellComplex, Cluster, Topology
ImportError: cannot import name 'Vertex' from 'topologic' (unknown location)
File "/home/ololo/Downloads/INSTALL/blender-2.90.0-linux64/2.90/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "/home/ololo/.config/blender/2.90/scripts/addons/topologicsverchok/__init__.py", line 31, in <module>
from topologic import Vertex, Edge, Wire, Face, Shell, Cell, CellComplex, Cluster
ImportError: cannot import name 'Vertex' from 'topologic' (/home/ololo/Downloads/INSTALL/blender-2.90.0-linux64/2.90/python/lib/python3.7/site-packages/topologic/__init__.py)
I would like to suggest improving the dependency installation.
This could be done in different ways:
Can you create couple of json examples to include to sverchok examples?
We already have some extra nodes / freecad / openshape examples:
that depends on some libs. So no metter if default examples topology nodes will be inside sverchok (or add your topology examples menu to sverchok examples on fly)
Importans for educational curve
I installed Blender version 3.6.13, then I installed in order:
I tried to install TopologicSverchok dependencies via the blender interface using the "topologic.InstallDependencies" and "Stethoscope MK2" nodes present in the Sverchok editor.
The process ended with the installation of all dependencies, but all nodes are still grayed out even after a reboot, I don't understand why!
My goal is to use topologic to do energy analysis iterative analysis of a building to find optimal configurations for different parameters in a specific climate context.
Below are the error messages that the blender console displays and information about my system:
OS: Windows 10
Installed python versions: Python 3.10.13 and Python 3.12.4
I tried going here but 404 https://github.com/Wassim/TopologicPy
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.