[Bf-committers] List the nodes of Frame with API

Fabio Russo ruesp83 at gmail.com
Sun Jan 6 19:25:43 CET 2013


Excellent! : D
But this only allows me to read the relationship, if I instead want to set
up the relationship? How do I? Parent is read only


2013/1/6 Lukas Tönne <lukas.toenne at gmail.com>

> Nodes have a "parent" pointer that defines the hierarchy. When you
> have a frame node called "frame", the list of attached nodes consists
> of all nodes whose parent is "frame":
>
> node_tree = frame.id_data
> children = [node for node in node_tree.nodes if node.parent == frame]
>
> On Sun, Jan 6, 2013 at 1:17 PM, Fabio Russo <ruesp83 at gmail.com> wrote:
> > I'm back with some more questions regarding the nodes!
> > I'm trying to improve the addon Compositing Presets, so do not call me
> > annoying :P
> > My new question is how do I know which nodes are located above the frame
> > node via API?
> >
> > Thank you very much,
> > ruesp83
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-committers
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list