Notifications
Clear all

[Closed] Netrender critical priority

Hi

I’m currently writing a script to automate Rendering of chosen Layers separately and send it to the Netrender. It’s supposed to be possible to set the priority and some other settings manually before sending, but since I added the “critical priority” part to the script it doesn’t work anymore. If I take the line out of the Script, it works again, but of course, nothing is set to critical

Here the Code for submitting to the Netrender

               m = NetRender.GetManager ()
                m.connect #manual selectedserver
                mySubmissionFile = (maxfilepath + str_filename + ".max")
                   
                  saveMaxFile mySubmissionFile
    
                    job = m.newjob file:mySubmissionFile
                    job.fromframe = rendStart
                    job.toframe = rendEnd
                    job.suspended = false
                    job.includeMaps = true
                    job.superBlack = false
                    job.renderFields = false

                  [b]  job.critical = true[/b]

                    job.force2Sided=false
                    job.renderEffects = true
                    job.gammaCorrection = true
                    job.gammaValueOut=2.2
                    job.gammaValueIn=2.2
                    job.renderAtmosphericEffects = true
    
                    job.submit()

I tried several ways for critical priority that I found in different places, but it’s always the same. Maybe this setting doesn’t exist in that way, but I can’t think of anything else anymore. Hope someone here can help me
(as you probably can guess I’m not really proficient in MAXScript, so sorry if this is a really stupid question)

2 Replies

I didn’t use job.critical = true in submit my scripts.
I just set job.priority = 0

thank you so much!!
this works. ^_^/ I tried setting the priority with “job.priority” to 100 and thought it might work, but didn’t try it with “0”. Thought it would be like, the last thing that will be rendered…

Thanks a lot again, I actually thought there might not be any answer, because this question seemed so stupid even to myself