ID 152937 - Undo - Undoing expression on any node is not in the correct order

Follow

Undoing expression on RotoPaint are not in the correct order. Looks like expression doesn't get recorded in the undo stack or is not in the right order. As a result if the shape becomes undone completely and new shape is added or the same shape is being modifiied it will have the animation on it. For instance if the expression is on translate y shape will jump to the key frame on translate y.

I've also noticed that Nuke8 doesn't do a perfect job either but is better than Nuke9. For example if the expression is added to 'Skew' undoing is broken in both versions, but undo with some other knobs for example 'opacity' works fine on Nuke8.0 but not Nuke9.0.

To repro 1:

- Add a RotoPaint
- Create a shape
- In Transform tab, edit the expression of 'translate y' (Right click on the keyframe icon -> Edit expression)
- Undo

> Expression doesn't get undone. Shape starts getting undone. On Nuke8, first expression becomes undone then the shape

Create a Transform node
Right click the "Scale" input parameter and select "expression" 
In the expression menu type [frame]
Click "ok"
Right click the "Scale" input parameter and select "expression" again
Press "ctrl + z"
 
RESULT:
 
The expression still remains despite the undo hotkey being used. 

 
 
(repro 2 is fixed)

Have not regression test in Nuke9.0 yet.

Issue still Persists as of Nuke 11.0v1

Host(s):

    We're sorry to hear that

    Please tell us why