I believe a better approach is to co-opt the Paste function with your
own function that looks for the special knob, and, if it finds it, deals
with it appropriately.
On 03/19/2015 12:06 PM, Gustaf Nilsson wrote:
Hello
i want to create a noop node that when i copy/paste it, it will keep
the input of the original node.
to do this i thought i would store the input name in a text knob
(called "tunnel") and connect it with the onCreate trigger.
nuke.selectedNode()["onCreate"].setValue("nuke.thisNode().setInput(0,nuke.toNode(nuke.thisNode()['tunnel'].getValue()))")
what am i missing?
kbye
--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■
_______________________________________________
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
_______________________________________________
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