[Bf-committers] Python Access to some properties of nodes

Bartek Skorupa (priv) bartekskorupa at bartekskorupa.com
Wed Dec 19 18:00:57 CET 2012


Hey everyone,

Perhaps at least some of you know that recently I wrote a little Add On for speeding up the work with nodes.
Here's the one:
wiki:
http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Nodes/Nodes_Efficiency_Tools
tracker:
http://projects.blender.org/tracker/index.php?func=detail&aid=33543&group_id=153&atid=467

When writing this tool I encountered some difficulties just because some properties of nodes or sockets are not available. in python.
For example:
When I want to check what a certain node is linked to I have to iterate through all of the links and check link's props: from_node, from_socket, to_node or to_socket

Would it be possible to add similar properties to the node, or socket itself?
We have a property is_linked to check if certain socket is linked. It's fine, but it also would be good to have something like to_node, to_socket, from_node, from_socket as properties of sockets.
This way we wouldn't have to iterate through all links to check simple connections.

Is it possible to add such properties or it requires rewriting the whole blender?


(BTW, I'd also like to ask for checking the code of this add-on. My goal is to work on it, maintain it and maybe some day have it included in trunk)


Cheers

Bartek Skorupa

www.bartekskorupa.com



More information about the Bf-committers mailing list