[Closed] Pre-Render
usePreRendScript[font=Courier New](system BooleanClass)[/font]
preRendScript[font=Courier New] (system String): “”[/font]
I would like to make my script (ex. C:\ est.ms)go into the part of [Scene Dialog / Scripts / Pre-Render]
How can I use those script?
Maybe it’s just me, but I don’t really understand what you’e asking. Can you be more clear?
Guess the issue is to get the script path (c:\ est.ms) 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.
You can, but you have to close the render dialog first…
(
local RDwasOpen = renderSceneDialog.isOpen()
if renderSceneDialog.isOpen() then renderSceneDialog.close()
preRendScript = "D:\ emp\\Wow2.ms"
usePreRendScript = true
if RDwasOpen then renderSceneDialog.open()
)
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 ?
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"
HKEY_LOCAL_MACHINE (const HKey): HKEY_LOCAL_MACHINE
[b]localPreRendScript (system BooleanClass): false[/b]
locals (const Primitive): locals()