Manipulating BVTKNodes via Blender python #84
-
Hello, where in Blender Python's bpy object are the BVTK nodes in a running scene? I currently have to read in thousands of VTK PolyData models and gather stats about the generated meshes from blender functions. I am having a very hard time figuring out how to access BVTKNodes and manipulate their fields from Blender's python text editor. I could really use two lines of working python examples to:
The current documentation states: It is possible to interact with nodes and live VTK objects via Blender’s Python Console. Python Console includes three help operators for BVTKNodes: Get Node operator inserts text which returns access to active node. But I can't for the life of me find where those functions are in the bpy object while scripting in Blender's text editor. I do believe two working lines of code would do the BVTK documentation a great service. i.e.: and bpy.fucntion.path.to.BVTK.updatescene() |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Perhaps, you may want to have a look at #2 . This was done a couple of years ago. BVtkNodes has changed substantially since then, so it is possible that the example script (+ updating part) may not work as intended. |
Beta Was this translation helpful? Give feedback.
-
For anyone finding this thread: I've now added a section to the docs about Python Scripting BVTKNodes in Blender. |
Beta Was this translation helpful? Give feedback.
Perhaps, you may want to have a look at #2 . This was done a couple of years ago. BVtkNodes has changed substantially since then, so it is possible that the example script (+ updating part) may not work as intended.
Checking the live Python console info panel helped me in figuring out how to access/edit object properties.