State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:355981|
Problem summary
With Nuke11.1's new Localization API, the nuke.localization.localizationProgress() function was introduced, which gets the percentage of localization completed in the project.
The function appears to have some incorrect/undocumented behavour, for instance:
Using nuke.localization.localizationProgress() will output a value relative to the amount of nodes on script open, but will not update as expected when nodes are deleted during a Nuke session.
This can lead to confusion when a localised node is removed from a scene, the function will tell users that the localizationProgress() is not 100% anymore (Even when every existing node in the scene is localised)
Customer reported version
nuke.11.1v4
Customer reported platform
n_a_mac
Steps to reproduce
1) Open Nuke, Create a Checkerboard node and a Write node.
2) Export out a 2 frame sequence (Named twoFrames.####.exr) and an 8 frame sequence (Named eightFrames.####.exr).
3) Read in both newly created sequence as follows:
The Read node should now have a Green bar above.
nuke.localization.localizationProgress()
You should receive a result of '0.8' as 80% of read in frames in the scene are localised:
The localizationProgress result should now be '1.0' as 100% of frames in the scene are localised.
nuke.localization.localizationProgress() result is now '0.8', when it should be '1.0' as all read nodes in the scene are still localized.nuke.localization.localizationProgress() again.nuke.localization.localizationProgress().We're sorry to hear that
Please tell us why