State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:377244|
Problem summary
Users who use nuke.getNodePresetID() have found the Grain node's Preset ID has changed with Nuke11.3v1.
Nuke11.2v5 ( and earlier ) :
nuke.getNodePresetID() within their Python scripting.selectedNodes = nuke.selectedNodes()
for node in selectedNodes: print nuke.getNodePresetID(node)# Result: Group7719682074798230515
# Result: Group8532992469680373393
Continue compatibility with earlier scripts:
selectedNode = nuke.selectedNode()
grainPresetID = nuke.getNodePresetID(selectedNode)
if grainPresetID == 'Group7719682074798230515':
print 'Nuke11.3 Grain, use legacy group instead'
grainPresetID = 'Group8532992469680373393'
else:
print 'Nuke11.2 and earlier Grain detected, continue using legacy naming scheme'
Switch functions to use node.Class() instead.
This is the recommended method as node.Class() uses the Grain node's proper name instead of a Group naming scheme.
nuke.getNodePresetID() without worrying about name changes.We're sorry to hear that
Please tell us why