Yep, there's a script on Nukepedia that does it for Postage Stamp nodes, although it seems a little buggy. Probably best to roll your own, but it's here if you want to try it:

http://www.nukepedia.com/python/nodegraph/postagestamp-copy/paste-fix

Cheers,
Andy

On 19/03/2015 16:41, Charles Taylor wrote:
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

_______________________________________________
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