Work in Progress: Questions for a RenderFarm Submitter
Posted: August 9th, 2012, 12:01 pm
Hi everyone!
Having used expressions pretty extensively for the past couple years, i've decided to jump neck-deep into teaching myself scripting. I've been at it for a couple weeks now, and have decided to tackle a project as a case-study to learn the ins and outs of everything.
I'm working on a script that provides a docking UI for submitting render jobs to Smedge. (http://www.uberware.net/smedge3/)
I've finished building the UI and am now starting in on making all the pretty buttons actually do things.
As i'm going along though I find myself running into the occasional issue or questions, and i'm wondering if I can reach out to you guys for help as I proceed.
The intended behavior is to be able to select a bunch of comps (or render queue items), fill in the settings for the render farm, select output settings, and then have the script do the grunt work with a single click. Here is where I run into my first question:
Question 1:
Can I determine the difference between whether or not a project item or render queue item is selected?
Reasoning:
My colleagues have expressed an interest in either being able to select a bunch of comps, and then fill in the desired settings with the "Render Queue" section as shown in the screenshot. The script would then submit the items to the render queue, save, and then submit the job to the farm. Alternatively, they also would like the ability to select pre-existing jobs already in the render queue and submit those directly. In that case, I would have the script disregard everything in the "Render Queue" section of the palette. I've had difficulty pinning down how to tell the difference between what is selected (or if both are selected). I could use a point in the right direction.
More questions to follow im sure! I will keep them all in this work in progress thread. Thanks for any advice you can give!
Additional infos:
Resources im using to learn in case you need to tell me to RTFM a specific page:
Adobe After Effects CS6 Scripting Guide: http://blogs.adobe.com/toddkopriva/file ... -Guide.pdf
Beginning ScriptUI: http://www.scribd.com/doc/56130789/scri ... er_page_52
Creative Suite 6 Tools Guide: (Offline: CS5 version is here: http://wwwimages.adobe.com/www.adobe.co ... de_CS5.pdf)
Adobe Introduction to Scripting(2012): (Offline: 2007 here: http://wwwimages.adobe.com/www.adobe.co ... pting1.pdf)
Scripts i'm using as references/examples:
Batchprocessor.jsx by Charles Bordenave and Lloyd Alvarez
CreateFoldersForSequences.jsx by crgreen
Duplicator.jsx assembled by David Torno
Having used expressions pretty extensively for the past couple years, i've decided to jump neck-deep into teaching myself scripting. I've been at it for a couple weeks now, and have decided to tackle a project as a case-study to learn the ins and outs of everything.
I'm working on a script that provides a docking UI for submitting render jobs to Smedge. (http://www.uberware.net/smedge3/)
I've finished building the UI and am now starting in on making all the pretty buttons actually do things.
As i'm going along though I find myself running into the occasional issue or questions, and i'm wondering if I can reach out to you guys for help as I proceed.
The intended behavior is to be able to select a bunch of comps (or render queue items), fill in the settings for the render farm, select output settings, and then have the script do the grunt work with a single click. Here is where I run into my first question:
Question 1:
Can I determine the difference between whether or not a project item or render queue item is selected?
Reasoning:
My colleagues have expressed an interest in either being able to select a bunch of comps, and then fill in the desired settings with the "Render Queue" section as shown in the screenshot. The script would then submit the items to the render queue, save, and then submit the job to the farm. Alternatively, they also would like the ability to select pre-existing jobs already in the render queue and submit those directly. In that case, I would have the script disregard everything in the "Render Queue" section of the palette. I've had difficulty pinning down how to tell the difference between what is selected (or if both are selected). I could use a point in the right direction.
More questions to follow im sure! I will keep them all in this work in progress thread. Thanks for any advice you can give!
Additional infos:
Resources im using to learn in case you need to tell me to RTFM a specific page:
Adobe After Effects CS6 Scripting Guide: http://blogs.adobe.com/toddkopriva/file ... -Guide.pdf
Beginning ScriptUI: http://www.scribd.com/doc/56130789/scri ... er_page_52
Creative Suite 6 Tools Guide: (Offline: CS5 version is here: http://wwwimages.adobe.com/www.adobe.co ... de_CS5.pdf)
Adobe Introduction to Scripting(2012): (Offline: 2007 here: http://wwwimages.adobe.com/www.adobe.co ... pting1.pdf)
Scripts i'm using as references/examples:
Batchprocessor.jsx by Charles Bordenave and Lloyd Alvarez
CreateFoldersForSequences.jsx by crgreen
Duplicator.jsx assembled by David Torno