That usually do it.
If you don't update the roto node via python, closing it, reopening it on the Properties panel should do it, sometimes you need to change the current frame to something else.
Is that working for you?
Sometimes when creating curves from scratch you need to set some properties, like visibility.
If you don't do it, you may need to select the curve on the node to see it.
Magno.
I really really would have loved your answer to have worked, but unfortunately not :(any other ideas?On Wed, Jul 24, 2013 at 12:11 PM, Magno Borgo <[email protected]> wrote:
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 <[email protected]> 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--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■--
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■
--
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 [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
