navis-org / pymaid

Python library to interface with CATMAID servers. Fully interoperable with navis.
https://pymaid.readthedocs.io/en/latest/
GNU General Public License v3.0
23 stars 11 forks source link

Add interface with Blender #7

Open schlegelp opened 7 years ago

schlegelp commented 7 years ago
schlegelp commented 7 years ago

Could also make a UI part of that module

schlegelp commented 7 years ago

Basic interface added with commit f689e1c6b2deddec01d029defc756a9f69d28038

schlegelp commented 7 years ago

I reopened this issue for tracking additional feature suggestions regarding the Blender integration after the initial implementation.

schlegelp commented 7 years ago

Reimport from Blender back to Python as core.CatmaidNeuron/List object: this would allow to load a neuron into Blender, manipulate (i.e. cut or prune) and then bring it back to Python. This would require to save treenode IDs with neuron objects -->curve.spline.points does unfortunately not allow assigning of custom properties. But we could hijack the weight property to store the treenode ID. This property is preserved when deleting points/splines but new points will get the weight of their parent!

schlegelp commented 7 years ago

Upon initialising b3d.handler, add new method plotb3d() to core.CatmaidNeuron and core.CatmaidNeuronList. Can be defined within the b3d module.

schlegelp commented 7 years ago

Generate url to 3d cursor location.