State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:600498|
Problem summary:
Callbacks like onCreate are removed from LiveGroups when the node is Published
Customer reported version:
Nuke 15.1v5
Customer reported platform:
Alma 8
Steps to reproduce:
1) Launch Nuke and open the Script Editor window
2) Run the following code to create a LiveGroup node with an onCreate callback, then Copy/Paste the LiveGroup when it is Editable and Published:
callback_str = 'print(f"{nuke.thisNode().name()} - onCreate callback executed")' lg = nuke.createNode('LiveGroup') with lg: nuke.createNode("ColorWheel") nuke.createNode("Output") lg['onCreate'].setValue(callback_str) print("Copy/Pasting editable LiveGroup...") nuke.nodeCopy("%clipboard%") lg2 = nuke.nodePaste("%clipboard%") lg2.setSelected(False) lg.setSelected(True) lg.publish("C:/temp/my_lg_file.nk") print("Copy/Pasting published LiveGroup...") nuke.nodeCopy("%clipboard%") nuke.nodePaste("%clipboard%")3) Observe how the callback only persists for the Copied nodes if the original LiveGroup was not Published. Alternatively, save, close, and reopen the Nuke script, and observe how the callbacks no longer exist on the Published LiveGroups.We're sorry to hear that
Please tell us why