Deadline Frame Order

Discussion and Support of Deadline, the Render Management System
JokerMartini
Posts: 49
Joined: Tue Apr 10, 2012 3:05 pm

Deadline Frame Order

Postby JokerMartini » Mon Sep 11, 2017 6:31 am

Is there a way in which I can make a custom Framerange order submission?

We want to submit our renders to the farm with this being the order of the frames:
1. First, Middle, and Last frames first
2. First ten consecutive frames
3. Then remaining frames in range
* Optionally support every nth frame.

panze
Posts: 61
Joined: Fri Jul 24, 2009 1:54 am
Location: Finland
Contact:

Re: Deadline Frame Order

Postby panze » Mon Sep 11, 2017 8:28 am


eamsler
Posts: 1827
Joined: Thu Dec 16, 2010 1:02 pm
Location: Winnipeg, MB, Canada

Re: Deadline Frame Order

Postby eamsler » Mon Sep 11, 2017 11:11 am

The other question is, do you want to automate this? You could create an OnJobSubmitted event or modify the submission script to handle it.

Which app(s) are you submitting jobs from?
Edwin Amsler
Head of Support
Thinkbox Software Inc
+1-866-419-0283 ext 804

Winnipeg

JokerMartini
Posts: 49
Joined: Tue Apr 10, 2012 3:05 pm

Re: Deadline Frame Order

Postby JokerMartini » Mon Sep 11, 2017 11:54 am

I'd be submitting from 3dsmax. So it would be great if this could be an event. That way we could do it for other applications like Maya

JokerMartini
Posts: 49
Joined: Tue Apr 10, 2012 3:05 pm

Re: Deadline Frame Order

Postby JokerMartini » Mon Sep 11, 2017 11:57 am

It would be better to probably put this in the job submission rather than an event because I wouldn't want this to happen on every submission job from 3ds Max

JokerMartini
Posts: 49
Joined: Tue Apr 10, 2012 3:05 pm

Re: Deadline Frame Order

Postby JokerMartini » Mon Sep 11, 2017 12:44 pm

Using Maxscript, how can i set the output framerange to the custom range?


Code: Select all

# To render every 10th frame between 1 to 100, then every 5th frame, then every 2nd frame, then fill in the rest, you can specify one of the following:
1-100x10,1-100x5,1-100x2,1-100

User avatar
Bobo
Posts: 5979
Joined: Tue Nov 15, 2005 10:26 am
Location: Vancouver, Canada
Contact:

Re: Deadline Frame Order

Postby Bobo » Mon Sep 11, 2017 1:25 pm

JokerMartini wrote:Using Maxscript, how can i set the output framerange to the custom range?


Code: Select all

# To render every 10th frame between 1 to 100, then every 5th frame, then every 2nd frame, then fill in the rest, you can specify one of the following:
1-100x10,1-100x5,1-100x2,1-100



You can do this only if you are writing your own JOB files. If you are using SMTDFunctions, you cannot do this in the current builds.
However, the request for this came from another customer a few weeks ago, and I have implemented it internally for SMTD 10.0. I don't think it has been merged and shipped yet, but I could be wrong.

The option was implemented using new SMTDSettings.UseCustomFrameList and SMTDSettings.CustomFrameList properties.
The former has to be set to True to enable the custom list, the latter defines the arbitrary list of frames, but you must expand it yourself, so the above short-hand notation does not work. The reason is that we need to also support Preview jobs submission, so we need an array of frames to operate on within SMTD.

If you don't have SMTDSettings.UseCustomFrameList defined in your version, then you don't have a build that supports custom lists yet.

Once you have the new version, you could do

Code: Select all

SMTDSettings.UseCustomFrameList = true
SMTDSettings.CustomFrameList=#(rendStart.frame as integer, (rendEnd.frame as integer - rendStart.frame as integer )/2, rendEnd.frame as integer) --first, middle, last
for i = rendStart+1 to rendStart+10 do appendIfUnique SMTDSettings.CustomFrameList (i.frame as integer)  --first 10
for i = rendStart to rendEnd by 5 do appendIfUnique SMTDSettings.CustomFrameList (i.frame as integer)  -- every 5th
for i = rendStart to rendEnd do appendIfUnique SMTDSettings.CustomFrameList (i.frame as integer) --all others
with PrintAllElements on format "%\n" SMTDSettings.CustomFrameList --show me the result

Result:

Code: Select all

--> #(0, 50, 100, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 35, 40, 45, 55, 60, 65, 70, 75, 80, 85, 90, 95, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 26, 27, 28, 29, 31, 32, 33, 34, 36, 37, 38, 39, 41, 42, 43, 44, 46, 47, 48, 49, 51, 52, 53, 54, 56, 57, 58, 59, 61, 62, 63, 64, 66, 67, 68, 69, 71, 72, 73, 74, 76, 77, 78, 79, 81, 82, 83, 84, 86, 87, 88, 89, 91, 92, 93, 94, 96, 97, 98, 99)
Borislav "Bobo" Petrov
Product Specialist
Thinkbox Software Inc.

JokerMartini
Posts: 49
Joined: Tue Apr 10, 2012 3:05 pm

Re: Deadline Frame Order

Postby JokerMartini » Mon Sep 11, 2017 1:47 pm

perfect!
thanks Bobo

JokerMartini
Posts: 49
Joined: Tue Apr 10, 2012 3:05 pm

Re: Deadline Frame Order

Postby JokerMartini » Tue Sep 12, 2017 6:55 am

I'm creating a submit and job info files as described here: http://deadline.thinkboxsoftware.com/cu ... ubmission/

How do i edit this job info file for submission in order to add my custom frame list? Do just use simple ini methods?

JokerMartini
Posts: 49
Joined: Tue Apr 10, 2012 3:05 pm

Re: Deadline Frame Order

Postby JokerMartini » Tue Sep 12, 2017 7:01 am

How can I achieve this with the current deadline version 9 that we are using?
If not possible in version 9, how can i do it in version 10, when creating custom job files?


Return to “Thinkbox Software - Deadline”

Who is online

Users browsing this forum: No registered users and 1 guest