Hi, I'm trying to find a way to do this.

I can get a viewer process node like this:

myViewerProcess=nuke.ViewerProcess.node("myViewerProcess")

I can set the selection as True on that node, but when I try to copy
it with nuke.nodeCopy, nuke complains that there is nothing selected.
I understand that it does not see the node, as the context is not
nuke.Root.
What would be the context? Is this even possible?

This brings me to a second observation: Is it just me or is
nuke.nodeCopy and nuke.nodePaste a very crummy way to copy nodes? Does
anyone know a better way? I just find it annoying that you can just
duplicate an object directly, as nuke.nodePaste returns nothing and
you have to do a ton of work to get the nodes you want.
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to