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

Reply via email to