State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:268671|
Problem summary
nuke.PythonCustomKnob.getObject() returns different values when run in terminal mode compared to a Nuke interactive session
Customer reported version
nuke.10.5v2
Customer reported platform
Steps to reproduce
1) Download the attached Python file
2) Open a command window and run the below command:
<Nuke> -t --tg <pathtodownload>/PythonCustomBug.py
This will print:<PythonCustomKnob object at 0x0000000008CDC120>
None
<Nuke> <pathtodownload>/PythonCustomBug.py
In the Nuke script editor, this will print:<__main__.MyWidget object at 0x000000004A2AE908>
<__main__.MyWidget object at 0x000000004A2AE908>
<PythonCustomKnob object at 0x00000000083C3D08>
<__main__.MyWidget object at 0x000000004A2AE908>
We're sorry to hear that
Please tell us why