I am learning how to use the SGTK and I was wondering if there is a way to automate one of the steps. I open a Nuke from the Shotgun Desktop app, then I open the nuke script I am working on and the next step is Click the “Flow Production Tracking” tab in Nuke and select “File Save”. In the windos that appears, the name the toolkit assigns to this file is “Scene” by default. Is there a way to automate this so that it would get the name of the script? Please let me know
This is from my “templates.yml” file in the sgtk configuration. Ideally scripts should be SEQ_SHOT_main_version.nk. I am not sure if this is what you were asking for, please let me know if you need any more information, and thank you for your help.
You’ll need to update the nuke_shot_work (and related templates, eg publish) with the additional sequence and shot fields. These should be available within the publisher plugin based on your context so you might not need to customise their logic with the new templates.
Are you wanting to hardcode “main” as the {name} field? if so you can do that in the template, but that would result in your artists only being able to have a single nukescript per shot/step.
If you want to keep the option of multiple nukescripts per shot/step and for artists to choose the {name} field, then to change the default name to “main” instead of “scene” you need to update the workfiles2 settings for the relevant nuke context.