You need to use something like this, using the changed() to update the rotonode:
curves = node['curves']
"your python magic here"
curves.changed()
On Wed, 24 Jul 2013 05:20:19 -0300, Gustaf Nilsson <gus...@laserpanda.com> wrote:
hiI have a little python script that deletes all layers in a rotopaint node, then creates a new shape and sets its point values to something generated by the script.problem is that nuke doesnt actually redraw the shape when changing points programmatically. Understandable maybe as you wouldnt want it to redraw every time if you change a hundred points but is there anything i can call to force a redraw once i have set all the points? (other than changing frames)bug(?): clicking the "recalculate image (u)" button doesnt help.thanksG--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■
--
Magno Borgo
Certified Nuke Trainer
www.boundaryvfx.com
www.borgo.tv
Brasil:Curitiba:GMT= -3
Certified Nuke Trainer
www.boundaryvfx.com
www.borgo.tv
Brasil:Curitiba:GMT= -3
_______________________________________________ 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