Most efficient way to have a submission plugin based on a Python script?

I have a Python script that will upload to a major file sharing service using their API, it just needs to receive file path as argument.

I’d like for this to be an option in Deadline for them to “Submit to Filesharing Service” from Deadline Monitor Submission tab or have their render job as a dependency to upload after.

I fudged around with existing Python submission script, removing SceneFile selection option and setting it to the file path of my script. I also turned argument text box into a file selector to select their file.

Is this the optimal way to do this? I started by creating a simple plugin but realized I might as well not re-invent the wheel with managing Python versions and what not since I still need to use Python to run the script.

I’ll need to do this for a few different scripts I have that will take file path as argument. Is there any gotchas that I’m missing?

It sounds like you’d be ok just using the Python plugin. And to make sure it’s really easy for users you could create a bunch of submitters that only take the file path.

So since your uploader would always use the uploader script, the user would just give it a file path and that’s it. You’d be able to drop python version picker, the frame range - everything that’s extra fluff. Which sounds like what you were already doing.

I like the plan, especially if you’re going to be building a couple of these specific script submitters and you can re-use your own work. Just be sure to chuck it all into /custom so an upgrade doesn’t blow away your work.

Edit - You might also be interested in Monitor Scripts in particular for that uploader. You’d be able to right click on a job to act on it.