Problem summary
When using the 'F_ReGrain' node to analyse a 'Grain Plate' within Nuke, if the user would like to analyse their grain from a different frame from the original ( Using the 'Analysis Frame' within the 'Analysis Region'), when they restart their Nuke it will reset to the first frame.
This will cause the F_ReGrain node to analyse a whole different grain pattern, potentially breaking renders.
This also happens when running a render through the terminal (Such as Render Farming)
Steps to reproduce
1. Create a 'CheckerBoard' node and add a 'Grade' node.
2. Within the 'Grade' node, change the 1st frame of the 'CheckerBoard' to green via setting the 'Multiply' at frame 1 to full green.
3. Within the 'Grade' node, set the 10th frame of the 'CheckerBoard' to red via setting the 'Multiply' at frame 10 to full red.
4. Create a 'F_ReGrain' Node and set both the Source & Grain to the Grade node.
5. In the 'F_ReGrain' node, set the output to 'Grain Plate' and move the analysis box in the viewer.
6. Set the 'Analysis Frame' to 10 and re-analyse the clip.
7. Increase the 'Grain Amount' and 'Grain' Size to make it more visible.
8. Set the output back to 'Result' and note that the noise is Red.
9. Save your file, close Nuke then reopen Nuke.
Result: When reopening Nuke, the 'F_DeNoise' will reanalyse at the first frame (The noise should be black)
This will also work with 'Read' nodes, I did CheckerBoards for testing.
When using a 'Read' node, connect your 'F_ReGrain's' source to a 'DeGrain' node.
Workaround
1. In between step 3 & 4, create a 'FrameHold' node and set it to frame 10.
2. Connect the 'FrameHold' to the grade.
3. Continue step 4 but connect your 'Grain' to the 'Framehold' & your 'Source' to the 'Grade'
4. Finish the rest of the steps.
Result: When reopening Nuke, the 'F_ReGrain' will not analyse the first frame and be the correct pattern.
Reproduced by support
Nuke11.0v2 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.5v5 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.5v1 - Windows 7
Nuke10.0v6 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.0v1 - Windows 7
Nuke9.0v9 - Windows 7 - Mac10.12 - CentOS6.9
Nuke9.0v1 - Windows 7
Nuke8.0v7 - Windows 7 - Mac10.12 - CentOS6.9
Nuke7.0v10 - Windows 7
Earliest version tested
Nuke7.0v10 - Earliest version we regress bugs
Expected behaviour
The grain shouldn't reanalyse itself when reopening the Nuke project
Actual behaviour
The 'F_ReGrain' reanalysis itself when reopening the Nuke project.