Running scripts during rendering, not pre or post scripts

Running scripts during rendering, not pre or post scripts

Anonymous
Not applicable
753 Views
5 Replies
Message 1 of 6

Running scripts during rendering, not pre or post scripts

Anonymous
Not applicable
HI
Is it possible to run scripts while rendering between frames?
I have tried using a contoller script but it becomes inactive during rendering.(why!!!?)

I have tried setting up my own renderer but it crashes due to max errors at random frame intervals.

So I need to create one that can run in backburner so that the rendering can be auto restarted when it regularly crashes.

Yes I knowt his is a big work around. .

thanks Joe Ger
0 Likes
754 Views
5 Replies
Replies (5)
Message 2 of 6

stigatle
Enthusiast
Enthusiast
Use the "script" tool located in the Renderer dialog.

There are tools for adding scripts during:
Pre-render

Post-Render
0 Likes
Message 3 of 6

Steve_Curley
Mentor
Mentor
Search for "#prerenderframe" in the Maxscript help. There are restrictions on what you can do though.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 4 of 6

keithm
Enthusiast
Enthusiast
What are you attempting to accomplish? Perhaps there's a better way....
0 Likes
Message 5 of 6

Anonymous
Not applicable
HI
Is it possible to run scripts while rendering between frames?
I have tried using a contoller script but it becomes inactive during rendering.(why!!!?)

I have tried setting up my own renderer but it crashes due to max errors at random frame intervals.

So I need to create one that can run in backburner so that the rendering can be auto restarted when it regularly crashes.

Yes I knowt his is a big work around. .

thanks Joe Ger



Alternatively, install the free two-node version of Deadline and run your scripts there.
http://www.franticfilms.com/software/support/deadline/3dsmax.php#Scripts_Tab
Note that in order to perform file i/o operations or apply tools that require the viewports or the Max UI to be up, you have to be running Max in workstation mode (using up a license). This is a limitation of Max' network rendering mode, not of Deadline or Backburner.

If you are running a script controller in backburner, remember that scripted controllers are only evaluated if the object they are assigned to is renderable. For example, assinging a script controller to a dummy will not work, while assigning it to a track of a renderable box will. Also, there are limitations of what you can do within such a script, for example modiftying scene objects' topology or creating objects during rendering (as opposed to pre or post-rendering) can cause crashes.
0 Likes
Message 6 of 6

Anonymous
Not applicable
HI


There's some really helpful info above, thanks all. What Im trying to do is a work around max crashing on me the whole time. It has become very unstable in rendering motion blur at large frame sizes. Prerender and post render are not what i need, just once each frame only will work.

Anyway #prerendeframe works when run in a prerender script from the render dialog and then using net render for when it crashes

Joe Ger
0 Likes