Thank you Ben.
The undo is created correctly on the Edit menu, but it doesn't work whn I try to click on it.

I'm working specifically with roto/spline warp code, could be a bug perhaps. Anyone experienced this behavior before?
I guess i'll hit support.




undo = nuke.Undo()
undo.begin("Python script")
<code here>
undo.end()

Or you should be able to do:

with nuke.Undo("Python script"):
     <code here>

..although it doesn't seem to use the undo-description as I'd expect

On 16/05/13 22:59, Magno Borgo wrote:
Does the undo work with python scripts at all?

I'm trying without success inside my script:

nuke.Undo.begin("Python script")
<code here>
nuke.Undo.end()




--
Magno Borgo
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

Reply via email to