[Closed] Backburner and LayerManager
Hi All!
I’m wondering if there is someone else who have ever run in to a problem like mine. If so how did you solve it?
I’m trying to unhide a layer in a pre-render script like this:
layer = LayerManager.getLayerFromName “cam01”
layer.isHidden = false
It works when I do a local render but as soon as I send it to backburner it gets ignored. I can’t figure out whats wrong.
Please please help me!
Have a great day!
MAXScript access to the Max GUI during network slave rendering mode is banned by Autodesk.
You will have to force a “workstation licence” to be pulled by the slave so that references to the GUI via script can be made.
Thank you for your reply and thanks for the info! I will give it a try
That’s not the problem, underneath max has all the features loaded, the problem is not the GUI, you can find the answer here:
http://forums.cgsociety.org/showthread.php?f=98&t=875411
Cheers.
You could always try scripting your own persistent #filepostopen callback. That way right after the file opens it makes the change. So the change is made before the rendering of the scene happens.
The way I handle stuff like this is submit your scene through scripting, so you set the persistent callback, send job to render through scripting (netrender interface or 3dsmaxcmd submission), remove callback, repeat as needed.
-Eric