Hi,

I am building a Group node that rebuilds it's internals based on what its
input is.

I have written a function that works fine when launched via the script
editor, like so:
rebuildNode(nuke.selectedNodes()[0])

I am trying to trigger it when the input changes, so I tried putting my
function in a Python Expression on a knob (in "series of statements" mode):
rtn = rebuildNode(nuke.thisNode())

This does not work and it appears to be a call to nuke.nodePaste() that is
causing the problem.  When I put a nuke.nodePaste() call directly in the
expression I get this error:
"RuntimeError: The Group command is not allowed in a string or expression."

So the question is, Does nuke.nodePaste() not work inside a Python
Expression  or is it a context issue?  In my original function I used
myGroup.begin() before the nodePaste.  I have tried it with and without the
myGroup.begin() call in the Expression... doesn't work either way.


Thanks for your help,
Paul
_______________________________________________
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