we need to deal with the issue whenon_root_create performed when we close the script/close the application. We can leave it as a separate issue.
Whenever in GUI mode and you close nuke, then before it closes it actually clears the current comp and that triggers a root node creation and hence that callback. That in turn does some of our set resolution logic, etc. but also trigger workfile template build if that's configured. Something that would be really good to avoid if we can.
Originally posted by @BigRoy in #353 (comment)
Current Behavior
As came up here whenever you shut down Nuke (when running in GUI mode) when you close down the app before it shuts down it clears the current comp and apparently generates a new root node, which our nuke.addOnCreate registered callback acts upon.
Expected Behavior
When Nuke is being shut down, we should not be triggering any logic that we intended for new files.
Whenever in GUI mode and you close nuke, then before it closes it actually clears the current comp and that triggers a root node creation and hence that callback. That in turn does some of our set resolution logic, etc. but also trigger workfile template build if that's configured. Something that would be really good to avoid if we can.
Originally posted by @BigRoy in #353 (comment)
Current Behavior
As came up here whenever you shut down Nuke (when running in GUI mode) when you close down the app before it shuts down it clears the current comp and apparently generates a new root node, which our
nuke.addOnCreateregistered callback acts upon.Expected Behavior
When Nuke is being shut down, we should not be triggering any logic that we intended for new files.