Running a script to pre-load, autofill job and output options

I’m retooling the Harmony plugin. The xstage project file is a simple XML. I have an xml.etree based script that grabs information like frame range, write nodes, output options. How can I run this script (either on project file selection, or maybe with an autofill button)? Are there any working examples in other plugins I can check out?

You’re talking about the submitter built into Harmony right? You could add an additional button in the DeadlineRepository10\submission\Harmony\Main\SubmitHarmonyToDeadline.ui and point it at your script.

I’ve spent zero time working with Javascript, but I bet there’s a way to trigger on the file selection?

If you’re looking to hook into the submitter in the Monitor that’s all in Python and in DeadlineRepository10\scripts\Submission\HarmonySubmission.py. I’m not aware of any examples of what you’re looking to do however so let me know!

Thanks @Justin_B …Yeah I would like to put it into the deadline monitor submitter. I’ll update if I figure it out.

Gotcha - you’ll want to either add your own button or use something like (example from CommandLineSubmission.py)

    shellExecute.ValueModified.connect( ShellExecuteButtonPressed )

To have a function fire when one of the values are changed. From there you can read in what you’re reading in and use the settings set up at the top of the file as an example of what you’d set in the UI.