View Full Version : Pre-Render

05 May 2008, 08:24 PM
usePreRendScript(system BooleanClass)

preRendScript (system String): ""

I would like to make my script (ex. C:\\ into the part of [Scene Dialog / Scripts / Pre-Render]

How can I use those script?

05 May 2008, 01:42 PM
Maybe it's just me, but I don't really understand what you'e asking. Can you be more clear?

05 May 2008, 03:50 PM
Guess the issue is to get the script path (c:\\ to appear within the pre-render edit text as well as the update of the button state.

I have tried to change those settings via max script and update the scene dialog (max 2k8), but it does not 'visually' update these settings, unlike every other setting that can be made within the scene dialog.

05 May 2008, 05:44 PM
You can, but you have to close the render dialog first...

local RDwasOpen = renderSceneDialog.isOpen()
if renderSceneDialog.isOpen() then renderSceneDialog.close()
preRendScript = "D:\\temp\\"
usePreRendScript = true
if RDwasOpen then

10 October 2008, 05:53 PM
Hi there,

i just found this thread as i searched for "preRenderScript".
I wonder if the "Execute Locally (Ignored by Network Rendering)" checkbox is accessable over MaxScript too ?

10 October 2008, 09:31 PM
I wonder if the "Execute Locally (Ignored by Network Rendering)" checkbox is accessable over MaxScript too ?

Looks like that was missed in the documentation rounds...
localPreRendScript = true|false

As per the aforementioned - close the render scene dialog first.

Edit: colleague just asked "if it's not documented, how'd you find it?". Good question - apropos is your friend:
apropos "local"
It's a bit hit-and-miss; I figured if there -was- a parameter, then either "execute" or "local" would be part of its name. "execute" yielded only built-in function to evaluate strings as script code, but "local" yielded:

Local_Euler_XYZ (const MAXClass): Local_Euler_XYZ
stitchOps.simulateLocal (Primitive): simulateLocal()
stitchOps.stopLocalSimulation (Primitive): stopLocalSimulation()
nodeLocalBoundingBox (const Primitive): nodeLocalBoundingBox()
getLocalTime (const Primitive): getLocalTime()
scaledLocalToGlobal (const BipedGeneric): scaledLocalToGlobal()
globalToScaledLocal (const BipedGeneric): globalToScaledLocal()
globalToLocal (const BipedGeneric): globalToLocal()
localToGlobal (const BipedGeneric): localToGlobal()
scaledLocalToLocal (const BipedGeneric): scaledLocalToLocal()
localToScaledLocal (const BipedGeneric): localToScaledLocal()
localTime (system String): "2008-10-21 23:31:16"
localPreRendScript (system BooleanClass): false
locals (const Primitive): locals()

10 October 2008, 04:39 PM
Thats great, very thx for your answere.

"apropos" is a superb help.

CGTalk Moderation
10 October 2008, 04:39 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.