State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:426439|
Problem summary
nuke.knobDefault() fails to be set with a Transform class created by a Tracker node.
Customer reported version
nuke.n/a n/a
Customer reported platform
Steps to reproduce
1) In Nuke, Read in a file with motion, then create a Tracker node and adjust any settings.
2) Open the Script Editor and run the following snippet: nuke.knobDefault('Transform.shutteroffset', 'centred')
3) In the Tracker node, select Transform MatchMove and then select Create.
4) View the newly created Transform_MatchMove node in the Properties bin for a "shutteroffset" value.
Expected behavior
The shutteroffset default value should be 'centred' after applying it in the Script Editor.
Actual behavior
The shutteroffset value is unchanged from it's original default value of 'start'.
Workaround
Placing the following snippet in the init or menu.py or running it in Script Editor works as expected:
def shutteroffsetDefault():
k = nuke.thisKnob()
list = []
try:
if k.name() == 'createCornerPin':
for nodes in nuke.allNodes():
if nodes['name'].value().startswith('Transform_MatchMove'):
list.append(nodes['name'].value())
if list:
lastNode = list[0]
nuke.toNode(lastNode)['shutteroffset'].setValue('centred')
except:
pass
nuke.addKnobChanged(shutteroffsetDefault)
Reproduced by Support in:
Nuke 12.1v1 - Windows 10, CentOS 7, macOS 10.14
Nuke 12.0v1 - Windows 10
Nuke 11.0v1 - Windows 10
Nuke 10.5v1 - Windows 10
Nuke 9.0v1 - Windows 10
Nuke 8.0v1 - Windows 10, CentOS 7, macOS 10.14
Earliest version tested
Nuke8.0v1 - This issue appears to be in all versions of the product
We're sorry to hear that
Please tell us why