ID 383277 - LiveGroups with relative paths throw exceptions when launching via File -> Open Comp

Follow

Problem summary
Creating LiveGroups using relative paths such as "../" or "[python {nuke.script_directory()}]", works when setup, but displays issues when reloading the script.

When restarting Nuke and opening the saved script via "File -> Open Comp...", the following error prompt appears:


The error will be displayed for the number of LiveGroup nodes in the .nk file with relative paths.

Reloading the nodes via the GUI will bring in the LiveGroup footage.


Customer reported version
nuke.11.3v1

Customer reported platform
windows10

Steps to reproduce

1) Open Nuke, Create a LiveGroup.

2) Save Nuke

3) Within the LiveGroup, set the path to the following: 

[python {nuke.script_directory()}]/LiveGroupTest.nk
 
4) Publish the new LiveGroup

5) Save and Close Nuke

6) Reopen Nuke and reload the script via "File -> Open Comp..."

Result: The script will display the error prompt above and the LiveGroup will not be loaded.

 Enter the LiveGroup node and reload it to open the script.


Workaround
 
Option 1: Open the file from a new Nuke session
 
1A) Double click the Nuke script from its Directory Location
 
OR
 
1B) Open the Nuke script via Command line like the following:

C:\Program Files\Nuke11.3v2\Nuke11.3.exe  C:\path\to\your\script.nk
Note: Add --nukex after the nuke.exe call to launch NukeX
 
 
Option 2: Automatically reload the LiveGroups on launch

Add the following Python Snippet to your .nuke/menu.py file:

import nukedef reloadLivegroups():    nodes = nuke.allNodes()     for node in nodes:        if node.Class() == "LiveGroup":            node.knob("reload_script").execute()            print 'LiveGroups reloaded'nuke.addOnScriptLoad(reloadLivegroups)
 Please Note:  The exception prompts will still appear, although the LiveGroups will be loaded correctly.

 
Reproduced by support

This bug has been reproduced in:
Nuke11.3v1- Windows 7 - Mac10.13 - CentOS7
Nuke11.3v1- Windows 7 - Mac10.13 - CentOS7
Nuke11.2v1 - Windows 7
Nuke11.1v1 - Windows 7
Nuke11.0v1 - Windows 7 - Mac10.13 - CentOS7

Earliest version tested
- This feature did not exist before this version

Expected behaviour
LiveGroups should work with relative paths

Actual behaviour
LiveGroups with relative paths are not opened on launch, throws exception prompts.

    We're sorry to hear that

    Please tell us why