Job’s “FrameList” attribute can be viewed by opening Deadline Monitor Job’s Properties page:
Here is the Job Property screencapture:
Frames=15-17
The Job’s “Frames” attribute can be queried from any Plugin Script or Event Script.
If running Plugin script first get Job object:
job=self.GetJob()
For Event script it is not needed since Job object is passed there as an argument.
Having Job object we can query its frame list (its “Frame” attribute):
frames = job.Frames
or
frames = job.JobFramesList
both attributes return IronPython list variable. We can iterate them using a regular Python for loop. Example:
for i in range( 0, len(frames) ):
singleFrameNumber=frames[i]
To get a pre-formatted string output such as “2-9” instead of IronPython list of integers (where each integer is Frame Number):
frameList = FrameListUtils.ToString( frames )
We can override the Job’s Frames attribute using Job’s job.set_FramesList() method:
newFrameList='1-200'
job.set_FramesList(newFrameList)
Unfortunately job.set_FramesList() doesn’t update Job GUI.
Question: What method should be used to overwrite Job’s FrameList attribute so the new overwritten value shows up in Deadline Monitor Job’s Property page?
I was able to find
RepositoryUtils.UpdateJobOutputFileNames(job, newOutputFileNamesList)
and
RepositoryUtils.SetJobOutputDirectories(job, newOutputDirectoriesList )
but I can’t find anything regarding FrameList attribute.