State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:16.0v5|BugID:599507|
root_node = nuke.root() gsv_knob = root_node['gsv'] gsv_knob.setGsvValue('__default__.shot', "0100", nuke.gsv.DataType.List) gsv_knob.setGsvValue('__default__.seq', "pizza_party") gsv_knob.setListOptions("__default__.shot", ["0100", "0200"]) write = nuke.createNode("Write") write['file'].setValue("%{seq}_%{shot}") print(f"Write node GSV evaluates correctly to: {write['file'].evaluate()}")
3) Perform any of the following actions:gsv_knob.setGsvValue("__default__.test", "temp_value")gsv_knob.setGsvValue("__default__.shot", "0200")gsv_knob.removeGsv("__default__.shot")print(f"Write node GSV evaluates incorrectly to: {write['file'].evaluate()}")
5) Compare the results, noting that the Write node's GSVs are no longer evaluated:Knob.evaluate() method will stop working if any GSVs are created, removed, or adjusted.evaluate() method to produce the expected results:
tmp = write['file'].getValue() write['file'].setValue("") write['file'].setValue(tmp) print(f"Write node GSV evaluates correctly to: {write['file'].evaluate()}")
We're sorry to hear that
Please tell us why