Deadline's 'Path to Frames' Formatting in Shotgun

Hey guys,

at the moment we’re trialing Shotgun with the RV dailies viewer. RV uses the ‘Path to Movie’ and ‘Path to Frames’ fields in Shotgun to let you view Shotgun-logged media locally. We’ve run into a slight problem with the format that the Deadline Shotgun Submitter uses for image sequences, though.

Basically, Deadline gives Shotgun this kid of path:

\path\Exports\pr116_sc034\pr116_sc034_#####.png

Where RV needs this kind of path:

\path\Exports\pr116_sc034\pr116_sc034_@@@@@.png

So I was just wondering if there was a simple thing I could change in one of the scripts to redefine the formatting that’s sent to Shotgun? I’m concerned that maybe it isn’t so simple as it seems to refer exactly to how Deadline defines job output paths regardless of Shotgun.

If it’s going to require an extra chunk of code, that’s fine too, we have a Python guy starting here in the next fortnight, hopefully.

Thanks in advance for any help you can give me!

Mark Mullery

Tech and Comp for Cartoon Saloon

Hey Mark,

The easiest way to do this without affecting other Deadline stuff (most Deadline things expect the ‘#’ symbol to be used), would be to make some minor modifications to our ShotgunUtils script (located at ‘events/Shotgun/ShotgunUtils.py’ in your repo). This is the script that basically everything Deadline-related goes through to communicate with Shotgun.

For your purposes, you’ll need to locate these lines (part of the AddNewVersion function, line ~231 or so):

    if ini.get('VersionEntityPathToFramesField', "") != "":
        data[ ini['VersionEntityPathToFramesField'] ] = outputPath

Once you find it, you should just need to add a simple string replace:

    if ini.get('VersionEntityPathToFramesField', "") != "":
        data[ ini['VersionEntityPathToFramesField'] ] = outputPath.replace( '#', '@' )

Hope this helps! Let me know if you have any further questions.

Cheers,
Jon

Perfect, Jon. Thanks so much!

-M