State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:522663|
Problem summary
Shuffle2 fromInput1 and fromInput2 knobs don't update when an input connection is added Pythonically
The Shuffle node didn't have fromInput knobs, so didn't have this issue
Customer reported version
nuke.13.2v2
Customer reported platform
windows10
Steps to reproduce
1) Open Nuke
2) In the Script Editor, run the following code:
cb = nuke.nodes.CheckerBoard2() cw = nuke.nodes.ColorWheel() s2 = nuke.nodes.Shuffle2() s2.setInput(0,cb) s2.setInput(1,cw) print(s2.knob("fromInput1").value()) print(s2.knob("fromInput1").setValue(1)) print(s2.knob("fromInput2").value()) print(s2.knob("fromInput2").setValue(1)) 
# Result: {0} B False {0} B False cb = nuke.nodes.CheckerBoard2()cw = nuke.nodes.ColorWheel()s2 = nuke.nodes.Shuffle2()s2.setInput(0,cb)s2.setInput(1,cw)##### THIS SECTION FAILS##################print(s2.knob("fromInput1").value())print(s2.knob("fromInput1").setValue(1))print(s2.knob("fromInput2").value())print(s2.knob("fromInput2").setValue(1))#########################################s2.forceValidate()##### THIS NOW WORKS ###################print(s2.knob("fromInput1").value())print(s2.knob("fromInput1").setValue(1))print(s2.knob("fromInput2").value())print(s2.knob("fromInput2").setValue(1))######################################### We're sorry to hear that
Please tell us why