ID 417502 - Windows - Changing the file format value of a Write node via a third-party Python shell doesn't update the Write node's knobs

Follow

Problem summary

Changing the file format value of a Write node via an external Python shell doesn't update the Write node's knobs.


This problem does not occur when running Nuke in terminal mode (-t) or the Python interpreter Nuke ships with.


Customer reported version
Nuke 11.1v6


Customer reported platform
Windows 10


Steps to reproduce


1) Firstly, you will need a third-party Python interpreter installed.

2) Launch the Python interpreter and run the following lines of Python code to import the nuke module:

import sys

sys.path.append('C:\Program Files\Nuke11.2v1\lib\site-packages')

import nuke

3) Run the following code to see the error:

w = nuke.createNode('Write')

w['file_type'].setValue('mov')

w['meta_codec'].setValue(8)


Expected behaviour
The knobs should be updated on the Write node, as they are when running Nuke in terminal mode (-t) or the Python interpreter Nuke ships with.


Actual behaviour
The knobs are not updated on the Write node, and the following error is thrown:

NameError: knob meta_codec does not exist


Workaround
Unknown.


Reproduced by support

This bug has been reproduced in:
Nuke 12.0v3 - Windows 10

Nuke 12.0v1 - Windows 10

Nuke 11.3v1 - Windows 10

Nuke 11.2v1 - Windows 10

Nuke 11.1v1 - Windows 10

Nuke 11.0v1 - Windows 10

Nuke 10.5v1 - Windows 10

Nuke 10.0v1 - Windows 10

Nuke 9.0v9 - Windows 10

Nuke 8.0v1 - Windows 10


Earliest version tested

Nuke 8.0v1 
- This issue appears to be in all versions of the product


    We're sorry to hear that

    Please tell us why