Nuke Published Version Name missing underscores

Hello!

We’re changing the nuke section in templates.yml, here are my current templates:

    # define the location of a work area
    shot_work_area_nuke:
        definition: '@shot_root/work/nuke'
        root_name: 'primary'
    # define the location of a publish area
    shot_publish_area_nuke:
        definition: '@shot_root/publish/nuke'
        root_name: 'primary'
    # The location of WIP script files
    nuke_shot_work:
        definition: '@shot_root/work/nuke/v{version}/{Shot}_{Step}.v{version}.nk'
        root_name: 'primary'
    # The location of backups of WIP files
    nuke_shot_snapshot:
        definition: '@shot_root/work/nuke/v{version}/snapshots/{Shot}_{Step}.v{version}.{timestamp}.nk'
        root_name: 'primary'
    # The location of published nuke script files
    nuke_shot_publish:
        definition: '@shot_root/publish/nuke/v{version}/{Shot}_{Step}.v{version}.nk'
        root_name: 'primary'

    # write node outputs
    nuke_shot_render_mono_dpx:
        definition: '@shot_root/work/images/v{version}/{Shot}_{Step}_{nuke.output}_v{version}.{SEQ}.dpx'
        root_name: 'renders'
    nuke_shot_render_pub_mono_dpx:
        definition: '@shot_root/publish/elements/v{version}/{Shot}_{Step}_{nuke.output}_v{version}.{SEQ}.dpx'
        root_name: 'renders'

    nuke_shot_render_stereo:
        definition: '@shot_root/work/images/v{version}/{Shot}_{Step}_{nuke.output}_{eye}_v{version}.{SEQ}.exr'
        root_name: 'renders'
    nuke_shot_render_pub_stereo:
        definition: '@shot_root/publish/elements/v{version}/{Shot}_{Step}_{nuke.output}_{eye}_v{version}.{SEQ}.exr'
        root_name: 'renders'

    # review output
    shot_quicktime_quick:
        definition: '@shot_root/review/quickdaily/{Shot}_{Step}_{iteration}.mov'
        root_name: 'renders'
    nuke_shot_render_movie:
        definition: '@shot_root/review/{Shot}_{Step}_{nuke.output}_v{version}.mov'
        root_name: 'renders'

Everything is really working fine, I’m able to save a version, render, publish, open a published script ect. The only thing that’s weird is the Version Name field of the published movie. It’s missing underscores.

What I want in the Version Name Field:
sequence_shot_step_v###, timestamp

what I get:
sequence shot step v###, timestamp

Any help is appreciated!

Best,
Tim

Can you write your output between ` characters so the formatting doesn’t get lost?
Currently I’m unsure what the problem seems to be considering there is no way the underscores should be removed by toolkit.

I added backticks to the output bits now.

I also don’t know why the version name is missing underscores for the published movie, all my templates have underscores. The saved .nk files have the underscores and matches the templates. Which is why I was wondering if it’s something toolkit does by default when publishing the movie, but from the sounds of it that’s not the case?

when I use the PTR QuickReview tool the name that’s auto populated is missing underscores. If I manually add back the underscores and publish, the published movie does have underscores. I’ll attach some screenshots once I log on to my work machine :slight_smile:

Oh the quickreview app I think does indeed remove underscores.
You might be able to change that behaviour with a hook.

It’s actually happening both with the Quickreview app and when using the tk-multi-publish2 app. I just mentioned the Quickreview because I noticed the same behavior for the name. With the tk-multi-publish2 app you can’t enter a custom name in the GUI as far as I can tell.

The QuickReview app Version Naming is handled in this hook, which you can take over and adjust to your liking.:

I think I found the place where it happens for the main publisher

line 90. I definitely didn’t set this up myself so it’s coming from SGTK by default.

        # create a name for the version based on the file name
        # grab the file name, strip off extension
        name = os.path.splitext(os.path.basename(path_to_movie))[0]
        # do some replacements
        name = name.replace("_", " ")
        # and capitalize
        name = name.capitalize()
1 Like

It’s possible thats the default approach, toolkit is meant to be customzed to your workflow needs.