jchanvfx / NodeGraphQt

Node graph framework that can be re-implemented into applications that supports PySide2
http://chantonic.com/NodeGraphQt/
MIT License
1.26k stars 256 forks source link

return inherited (plugin and extension) node classes from viewer's selected_nodes(), rather than basic nodeItem #67

Closed rigGitLikeYouDigGit closed 5 years ago

rigGitLikeYouDigGit commented 5 years ago

Currently calling nodeGraph.viewer().selected_nodes() returns a list of NodeGraphQt.widgets.node_base.NodeItem() instances, regardless of if the selected node types have inherited further. This makes it difficult to query selected nodes in other windows if they are extensions of the base class, and makes it difficult to access any extra functionality that may have been added.

jchanvfx commented 5 years ago

Hey @edart76

methods from the viewer() are used internally by the node graph you'll want to used the methods in NodeGraph() object.

rigGitLikeYouDigGit commented 5 years ago

Hey man, turns out I'm a blind moron. Thanks very much for the tip, and for this awesome framework!

jchanvfx commented 5 years ago

all good man :smile_cat: I still need to write up some documentation for this node graph it's on the list.

Thanks.