inputAncestors()

   1933   1   0
User Avatar
Member
30 posts
Joined: Feb. 2012
Offline
Hi,

I am using inputAncestors() python function to call all inputs connections of myNode. But it is not working as I expected, It is reading nodes of subnets..

In help it mentioned
Returns a tuple of all input ancestors of this node. If include_ref_inputs is False, then reference inputs are not traversed. If follow_subnets is True, then instead of treating subnetwork nodes as a single node, we also traverse its children starting with its display node.

See also the inputs() method.


I didn't find where I have to mention the follow_subnets==False..

Can anyone have idea about this…

Thanks
@@KaRe@@
User Avatar
Member
30 posts
Joined: Feb. 2012
Offline
It worked..

myNode.inputAncestors(0) will work It is not taking nodes from subnets..

Thanks,
@@KaRe@@
  • Quick Links