ID 331027 - LiveGroups node does not retain input python or text data created through user knobs, when node is copied or script is saved and re-opened.

Follow

Problem summary
When manually adding a user knob to a LiveGroup, if the knob accepts input information (text/script) and not connected to a knob within the LiveGroup, when the LiveGroup is either copied or the script is saved and re-opened, these knobs will lose their input values.

This has been tested with the following user knobs: Text, Custom Python, Python Button and TCL Button.

If the LiveGroup is published, these knobs are retained when re-imported into the LiveGroup.

Customer reported version
nuke.11.0v1

Customer reported platform
windows10

Steps to reproduce
Open attached script, reload LiveGroup.nk and skip to step 4

OR

1) Create a LiveGroup node

2) Add a 'Python Script Button' user knob

3) Set name as 'CustomPythonKnob', label to 'Custom Python Knob' and add the following to the script input:

nuke.message ('hello world')

4) Test the created knob(s)
Result: Knob(s) will return the correct results.

5) Copy and paste the LiveGroup node and click the knob(s)
Result: Knobs no longer work and entered script/text has disappeared.

6a) Save the Nuke script
b) Re-open the script
c) Click the LiveGroup's knob(s)
Result: Knobs no longer work and entered script/text has disappeared.

Note: If the above steps are reproduced using a 'Group' node, input text will be retained.

Workaround

Workaround 1:

Reload the script that contains the LiveGroup, and on the LiveGroup tab, click Reload. If a dialog appears, click Yes. The created Python Script Button should now work as intended.

 

Workaround 2:

Create a new LiveGroup node. On the LiveGroup tab of its properties pane, select click the folder icon next to the 'file' field, and select the .nk that you had previously published. If a dialog appears, click Yes. The created Python Script Button should now work as intended.

 

Workaround 3:

Reload the script that contains the LiveGroup, ensure that the LiveGroup node is selected and paste in the following code into the Script Editor (right click the top bar of any pane > Windows > New Script Editor):


nuke.selectedNode().reload()

The created Python Script Button should now work as intended.

 

Workaround 4:

Copy and paste the following code into your menu.py file. This code will automatically reload the LiveGroup node upon creation:


def livegroupfix():    nuke.thisNode().reload()nuke.addOnCreate(livegroupfix, nodeClass='LiveGroup')

 

Reproduced by support
This bug has been reproduced in:
Nuke 11.1v1 - Windows 7 - MacOSX 10.13 - CentOS 6.9
Nuke 11.0v4 - Windows 7
Nuke 11.0v1 - Windows 7 - MacOSX 10.13 - CentOS 6.9

Earliest version tested
Nuke 11.0v1
- LiveGroups did not exist before this version

Expected behaviour
LiveGroups should retain entered knob information when copied and when a script is saved/re-opened

Actual behaviour
LiveGroups doesn't retain entered knob information when copied and when a script is saved/re-opened
 

    We're sorry to hear that

    Please tell us why