Notifications
Clear all

[Closed] Submit to backburner with dependencies

 JHN

Is there anyway to submit a job to backburner and set it’s dependencies? I can easily submit a job but I want to submit a second script job that depends on the first… I can’t find any info on it…

Thanks,
-Johan

25 Replies

AFAIK, there is no way to set dependencies outside of using the Monitor and doing it manually.

-Eric

Edit: Long way to do it, is add entries to the <DependsOn> entry in the job .xml on the manager. You would need to get the job handle, i think, (for some reason all getjobs() and numjobs commands I send return an empty array or 0) and then add that to the .xml and then send a SendUpdate(). Again I am guessing for now, because I can’t get backburner to work nicely with me for now.

 JHN

Eric,

Thanks, I will definitly investigate this and report back. But this just s*cks… really… it’s been like this for the last half year of me trying to do stuf and get there for 90% of the time and then the last 10% there’s something that’s just not supported in mxs and it makes me tired right now… I should go to bed… will report back!

Thanks,
-Johan

for regular render jobs you can set dependencies using a python script written by Kramsurfer which can be found in the python thread on page 14.

You said you want to run a script job. Do you mean you want to simply run a script after the first job is complete? If so, there are 2 solutions that I can think of.

  1. use a postRender callback with the first job or:
  2. use the cmdjob.exe command line renderer for custom jobs. it has a -dependencies flag which can be used to set dependencies (funny how that works huh?)
 JHN

Joel,
Yes, I want to do some scripting actions (create a comp file and some other stuff) and finally command virtualdub to create an avi from the rendered sequences.

  1. Doesn’t a postrender callback requires that max is open, or is the callback embedded in the maxfile so it can make a new job when it finishes. I’m using a slightly modified version of the batchItMax script from Paul and I could embed such a script in the max file I think. I haven’t used postrendercallbacks or callbacks in general that much.

  2. I will definitly have a look, thanks!

And I will also check the python script, thanks for all the pointers I will follow up on this when I have a working solution.

-Johan

#postRender should work, but keep in mind that all of the nodes rendering any bit of the sequence will have #postRender called once done – could check whether it’s the last frame in the sequence, but that might still finish ahead of some other frame on a slower machine, for example.

netrender access from maxscript needs some love

 JHN

some!?

Anyhoe, i’m trying to cmdJob the scriptjobs making them dependent on the mxs submitted max job via hiddenDOSCommand… I’d like to refer to it as “houtjetouwtje”, translate at will

-Johan

uh… babelfish says that translates to ‘toggle chalk line’… ???

 JHN

From what I’ve found it translated best to “A band-aid solution”… hope that’s a good translation. How english would be such a prettier language, if we could fit in all the nice dutch subtleties…

-Johan

Do you mean… English would become ‘gezellig’?

Page 1 / 3