It's quite possibly a bug bug with the roto/spline undo code - the
current (7.0v6) release notes mention a few bugs related to the undo for
Roto/RotoPaint/SplineWarp
I was testing with with something simple like the following, and it
works as expected:
undo = nuke.Undo()
undo.begin("Python script")
a=nuke.nodes.Blur()
b=nuke.nodes.Grade()
b.setInput(0, a)
undo.end()
Would definitely be worth contacting support about it.
On 17/05/13 00:40, Magno Borgo wrote:
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()
--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
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