n = nuke.selectedNode()
n.dependencies(nuke.EXPRESSIONS)
n.dependent(nuke.EXPRESSIONS) # < this one

Similarly you can do:

n.dependent(nuke.EXPRESSIONS | nuke.INPUTS | nuke.HIDDEN_INPUTS)

..or any combination of those

On 13/12/13 13:13, Jesse Kretschmer wrote:
> I have a set of nodes. One is a master node and the other nodes are
> linked to the master via an expression attached to a knob. From the
> master node, I would like to query the list of nodes that are
> referencing the master node through expressions.
> 
> Is there an easy way to all nodes that have expressions linked to the
> selected node?
> 
> I was hoping for something similar to node.dependencies(), but I can't
> find anything. I don't want to be in the business of parsing the
> expressions to discover this relationship.
> 
> Thanks,
> jesse
> 
> 
> 
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 

-- 
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to