Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Maxscript - Backburner - netRenderMgr progress
  RSS 2.0 ATOM  

Maxscript - Backburner - netRenderMgr progress
Rate this thread
 
62730
 
Permlink of this thread  
avatar
  • jona vark
  • Posted: 11 December 2011 04:53 AM
  • Total Posts: 573
  • Joined: 12 April 2007 08:40 PM

I’ve written a render manager for my studio. I am pretty happy with it. It even manages power! When nodes are done on the last complete job it powers them off and powers off the entire farm when the last job is done..  now I can sleep better knowing my render farm isn’t going to be running through the night.

I am a little confused about getting progress and frame counts from backburner jobs though.

When the manager sends an update callback my app requests all of the jobs again.

I am trying to use the job.numFramesComplete value to update my displays. But it doesn’t really update to the proper values until the job is completed.

When attempting to update the server’s progress I am trying to use s.jobFrameIndex as the frame number the server is currently working on. But somehow I don’t think the frame index equates to an actual frame. it returns either a frame number, undefined or 268435455 (0x0FFFFFFF)

So.. I am looking for some examples of code snippets to help me keep an a updated render progress display.



Attachment Attachment
Replies: 0
avatar
  • jona vark
  • Posted: 14 December 2011 11:32 AM

Still looking for answers if anyone knows anything.. or a link to a complete maxscript - backburner reference. The one that ships with Max2011 is full of holes and errors.

In short. I am trying to adapt my code to get real job/server status from backbiter. The docs are so sparse and plain that I am a little stuck.

My requests for status at the moment come back with erroneous, out of date information about the render job.

This is what I am using to try to get server current frame info from a running render.

(
  
srvrs rndMgr.GetServers filter:#job key:job
 
if srvrs.count 0 then
 
(
 
format "server: %  curFrame % \n" srvrs[1].name srvrs[1].jobFrameIndex
 format 
"server: %  curFrame % \n" srvrs[2].name srvrs[2].jobFrameIndex
 indx 
=   srvrs[1].jobFrameIndex

jobFrameIndex is always undefined or 268435455 (-2)

I know this isn’t what most users do with maxscript but I am hoping for a little light to be shed on this or some links to more complete documentation.

thanks!



Replies: 0
avatar
  • jona vark
  • Posted: 16 December 2011 01:59 AM

dang.. I guess I am stuck. I am sure the netRender class of Maxscript is working nothing like it is documented. Everything else is working but my real time progress part of the monitor. I can’t very well call Autodesk.. which is pathetic.



Replies: 1
/userdata/avatar/baadwq4zg_robot_100.jpg

bump…

Since AD is unwilling to provide assistance I am obliged to bump this question up to the top again as I haven’t found a solution. Everything else works but I am unable to get relevant progress information from either the JOB or its servers.  If I could just get some clues as to how this should work I could finish this script and retire the BB Monitor. At the moment I have power control and other features working but I still have to run the Monitor to see the progress.

I attempted to ask the anonymous “MaxStation” robot how to get help and it appears they were happy to help other users with simple script concepts but I have to conclude that they have no idea how to solve this one.

I have written to Bobo but I don’t think he ever received the email. He has more than a few sites and addresses on the web. Though, in his work as well I haven’t seen any code of the nature I am working on.

ANY assistance would be welcome!

Author: jona vark

Replied: 08 February 2012 03:34 AM  
avatar

Hi Jona, i hope this MaxStation post helps a bit: getting_backburner_status_information_from_maxscript



Replies: 0
avatar
  • jona vark
  • Posted: 09 February 2012 03:33 AM

Thank you very much for your reply. That was the first thing I tried but I get erroneous information in the jobFrameIndex. No matter how I attempt to get that data I always get either -2, 0 or undefined.

I know that I am connected to servers working on active jobs when I connect and query the servers for the job frame index.

Also.. when querying the job status (not the server status) I don’t get current values either. Sometimes they show up after the job is completed but during a render the calls return static values.. usually 0.

I was wondering if you have tested this code with BB2008? If so, did it work for you?

Thanks again for the link. I wish it were that easy!



Replies: 0
avatar
  • jona vark
  • Posted: 10 February 2012 03:54 AM

OK.. Maxstation has tested the code and found the same results as I have but may have also found the answer.. in the Maxstation blog



Replies: 0