AWS Thinkbox Discussion Forums

Right-Click in Deadline

I’ve been searching around the docs and looking for some information on how to create a custom Right-Click menu script for Deadline.
My goal is to make it so a user can right-click on a single or multiple jobs in Deadline and using the ShotgunTaskID stored in the JobExtraInfo0 slot to launch chrome and navigate the user to the Task in shotgun.

Oh, we’ve got an internal dev script that’ll get you pretty close.

There’s two parts: One, you need to drop the script into “[repo]\custom\scripts\Jobs”. The next is you need to enable it for multiple jobs in the “Configure Script Menus” section of the “Tools” menu:

Here’s the script with a bunch of secret sauce removed:

'''
Created July 27, 2016 by Justin Blagden
'''
import urllib
import urllib2
import webbrowser
from Deadline.Scripting import MonitorUtils, RepositoryUtils
from DeadlineUI.Controls.Scripting.DeadlineScriptDialog import DeadlineScriptDialog

def __main__():
    query_fields = {'text': 'hi there!'}
    encoded_query = urllib.urlencode(query_fields)
    request = urllib2.Request(url, encoded_query)
    response = urllib2.urlopen(request)

    #Open a web browser
    webbrowser.open_new_tab(response.geturl())

Thank you so much. I ended up writing one as well that is similar.

Privacy | Site terms | Cookie preferences