Cheers, that works fine and I guess will do until we get this show on
6.3. I don;t suppose there is a way of suppressing the panel that gets
flashed up from the curvetool is there?
Cheers,
Steve
[email protected] wrote:
Hi Stephen, this is a snippet that Ivan posted for one of his scripts
that does the job. Unfortunately there isn't a way before 6.3 to force
the validation of the node, so you will have to do something like
this, I have also done similar things executing dummy write nodes.
# Add a CurveTool for the forced-evaluation hack
temp = nuke.nodes.CurveTool()
n['translate'].setAnimated()
# Loop through the framerange
for frame in f:
nuke.execute(temp, frame, frame)
pos = nukescripts.snap3d.centroid(nukescripts.snap3d.selectedPoints())
n['translate'].setValue(pos)
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
Stephen Newbold
Compositing Lead - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python