State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:518704|
Problem summary
Cryptomatte doesn't return cryptoLayerChoice values via Python, unless the node's control panel is open in the GUI.
Customer reported version
Nuke 13.0v4
Customer reported platform
Windows 10
Steps to reproduce
1) Open Nuke.
2) Read in an image with Cryptomatte layers.
3) With the Read node selected, execute the following code in the Script Editor:
crypto_node = nuke.createNode("Cryptomatte") print(crypto_node['cryptoLayerChoice'].values()) This should print the knob values to the Script Editor.crypto_node = nuke.createNode("Cryptomatte", inpanel=False) print(crypto_node['cryptoLayerChoice'].values())This will print an empty Python list."path/to/file.exr"is the file path of your Cryptomatte EXR:read = nuke.nodes.Read(file = "path/to/file.exr") cryptomatte = nuke.createNode("Cryptomatte") cryptomatte.setInput(0, read) print(cryptomatte['cryptoLayerChoice'].values()) We're sorry to hear that
Please tell us why