Hi!

Just to let you know about this thread, i've contacted the Foundry support
to expose the problem, it seem that is a known bug that has been reported
with this id : Bug 17075

I hope this will be fix in the next release :)

You can see the discussion below.

Matthieu.

---------- Forwarded message ----------
From: The Foundry Support <[email protected]>
Date: 2011/3/2
Subject: Re: [Ticket#2011030210000102] [Nuke-python] Re: nuke.Undo
documentation
To: Matthieu Cadet <[email protected]>
Cc: Matthieu Cadet <[email protected]>, [email protected]


Hello,

Thank you for getting back to me with these additional details on
registering
the Undo action.

It appears to be a known bug that we have logged as Bug 17075. I've added
your
comments to the bug report and our engineers will be looking into this.
I'll do my best to pass on any relevant information received from them.

Apologies for any inconvenience this may be causing you.
Please let me know if I can help with further questions or comments.

Kind regards,
Iulia

Matthieu Cadet <[email protected]> wrote:

> Actually, when i'm execute this code:
>
> nuke.Undo.name("test python")
> nuke.Undo.begin()
> for i in range(0,5):
>      nuke.createNode("ColorCorrect","name CC_%s" % i,False)
>      nuke.createNode("Transform","name TS_%s" % i,False)
> nuke.Undo.end()
>
> the only undo item that is registred in the Edit menu is :
> Undo nuke.Undo.name("test python")...
>
> Even if i tried to execute the nuke.Undo.begin() before, then move some
node
> and finally execute the whole code, i got exactly the same in the Edit
> menu...
>
> Undo nuke.Undo.name("test python")...
>
> As information, i'm currently executing this code directly inside Nuke
> script editor.
>
> Thanks for your help and your quick response.
>
> On 3/2/2011 3:47 PM, The Foundry Support wrote:
> > Hello,
> >
> > Thank you for contacting support.
> >
> > I have logged the request for some examples on how to use the
nuke.Undo()
> > class as feature request 17087. Our engineers and documentation team
will be
> > looking into this.
> >
> > Regarding the nuke.Undo() issue you were inquiring in the Nuke-python
mailing
> > list, if you could send me some additional information, this would be
very
> > helpful.
> > To see if I understand this correctly, if you run the code provided, the
Undo
> > action is not registered into the Edit menu?
> >
> > nuke.Undo.name("test python")
> > nuke.Undo.begin()
> > for i in range(0,5):
> >    nuke.createNode("ColorCorrect","name CC_%s" % i,False)
> >    nuke.createNode("Transform","name TS_%s" % i,False)
> > nuke.Undo.end()
> >
> > Could you try running the nuke.Undo.begin() part, then changing
something in
> > the NodeGraph and after that run the rest of the code, including the
> > nuke.Undo.end(). Are you seeing the correct Undo action named "test
python"
> > registered in the Edit menu?
> >
> > If you could let me know these details it would be very helpful.
> > Please let me know if I can assist with further questions or comments.
> >
> > Kind regards,
> > Iulia
> >
> > Matthieu Cadet<[email protected]>  wrote:
> >
> >
> >> Hi Nuke Support!
> >>
> >> i'm forwarding you a discussion that have been created on the
Nuke-python
> >> group
> >> discussion, because i haven't get any answer from the group...
> >>
> >> here is my problem, i wanted to use the nuke.Undo() class but i can't
> >> find any examples or more documented sutff on how to use this in Nuke.
> >>
> >> I hope you can help me on this, to understand how to use correctly the
> >> nuke.Undo() class.
> >>
> >> thanks in advance for your help.
> >>
> >> PS: you can see my example code in the message bellow
> >>
> >> Matthieu.
> >>
> >> 2011/2/26 Matthieu Cadet<[email protected]>:
> >>
> >>> So i'm trying to do it like this :
> >>>
> >>> nuke.Undo.name("test python")
> >>> nuke.Undo.begin()
> >>>
> >>> for i in range(0,5):
> >>>     nuke.createNode("ColorCorrect","name CC_%s" % i,False)
> >>>     nuke.createNode("Transform","name TS_%s" % i,False)
> >>>
> >>> nuke.Undo.end()
> >>>
> >>> it seems that nuke do not record the Undo name "test python",
> >>> but it record all the nuke.createNode()...
> >>>
> >>> On 25 Feb 2011, at 15:31, Matthieu Cadet wrote:
> >>>
> >>>
> >>>> Hi,
> >>>>
> >>>> i'm putting this thread opened, because i found it
> >>>> in the nuke-python group archive.
> >>>>
> >>>> Can somebody explain how to use the nuke.Undo() class ?
> >>>>
> >>>> basically, i'm doing some python code to move/delete some
> >>>> Node in the DAG, and i want to be able to Undo my changes,
> >>>> and it seems that the nuke.Undo class is here for that,
> >>>> but i don't know how to use it...
> >>>>
> >>>> Thanks for your answer guys!
> >>>>
> >>>> Matthieu.
> >>>>
> >>>>
> >>>>> i'm also trying to figure out how to use nuke.Undo
> >>>>> can someone explain how to use it the "right" way?
> >>>>> greetings,
> >>>>> michael
> >>>>> Am 28.04.2010 08:33, schrieb Jesse Kretschmer:
> >>>>>
> >>>>>> I'm adjusting nodes programatically and nuke cannot undo my
actions.
> >>>>>> Digging through the python API docs I've seen nuke.Undo.begin() and
> >>>>>> nuke.Undo.end() though I can not successfully record a process such
that
> >>>>>> it is undoable.  I'm at a loss as to how to use this object in
nuke.
> >>>>>> Does anyone have a working example of nuke.Undo?
> >>>>>> Thanks,
> >>>>>> jesse
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> Nuke-python mailing list
> >>>>>> [email protected]
> >>>>>>
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> >>>>>>
> >>>>> --
> >>>>> ------------------------------------
> >>>>> michael vorberg
> >>>>>
> >>>>> digital compositor
> >>>>>
> >>>>> Solitudestr. 62
> >>>>> 70499 Stuttgart
> >>>>>
> >>>>> [email protected]
> >>>>>
> >>>>> +49 171 899 37 60
> >>>>>
> >>>>> Ust-IdNr.: DE267321910
> >>>>>
> >>>>> ------------------------------
> >>>>> --
> >>>>> ------------------------------------
> >>>>> michael vorberg
> >>>>> digital compositor
> >>>>> Solitudestr. 62
> >>>>> 70499 Stuttgart
> >>>>> [email protected]
> >>>>> +49 171 899 37 60
> >>>>> Ust-IdNr.: DE267321910
> >>>>> ------------------------------
> >>>>>
> >>> _______________________________________________
> >>> Nuke-python mailing list
> >>> [email protected]
> >>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> >>>
> >>>
> >>
> >>
> >
> >
> > --
> > The Foundry Customer Support
> > 6th Floor, The Communications Building, 48 Leicester Square, London WC2H
7LT,
> > UK +44 (0)20 7968 6828
> > 618 Hampton Drive, Venice, CA, 90291, USA +1 310 399 4555
> > Web: www.thefoundry.co.uk
> > Customer Support: 09:30-18:00 GMT / 08:30 - 17:00 PST
> >
> > The Foundry Visionmongers Ltd • Registered in England and Wales No:
4642027
> >
> >
>
>



--
The Foundry Customer Support
6th Floor, The Communications Building, 48 Leicester Square, London WC2H
7LT,
UK +44 (0)20 7968 6828
618 Hampton Drive, Venice, CA, 90291, USA +1 310 399 4555
Web: www.thefoundry.co.uk
Customer Support: 09:30-18:00 GMT / 08:30 - 17:00 PST

The Foundry Visionmongers Ltd • Registered in England and Wales No: 4642027
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to