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
Using Maxscript, how can i set the output framerange to the custom range?
# 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
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:
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?
Perhaps I misunderstand the question currently, but you just need to know how to define a custom frame range when creating your custom plugin/job info files? If so, all Manual Job Submission KVP’s (Key=Value Pairs) can be seen here: docs.thinkboxsoftware.com/produ … ml#general
I could give you a modified Deadline 9 version of SubmitMaxToDeadline_Functions.ms that has the same changes, but it would not be standard and any updates to Deadline 9 would overwrite the changes, so I would rather stay with 10.