PDA

View Full Version : How to tell in MaxScript if Max is rendering.


mustan9
09-07-2006, 08:21 PM
Hi,

How can I tell in MaxScript if 3D Studio Max is currently rendering a frame.

I need this for my Float Script controller which I want to calculate different results at render time, then in the viewports.

Any ideas?

hblan
09-08-2006, 12:45 AM
maybe not possible. i think .

Aearon
09-08-2006, 06:56 AM
try this:

look in the reference under "general event callback mechanism"

there are callbacks for the start and finishing of rendering i think (not sure about finishing)

in this callback you could set a global variable (global isRendering = true)

then get the value of this variable in your controller

mustan9
09-08-2006, 02:10 PM
Thanks that will work.

So it's safe to assume that there is no system varaible to check then. To bad.

Aearon
10-04-2006, 08:21 PM
"too bad."

well, at this point i disagree - think about it like this:

there is no specialized system to check from within a script controller if the scene is currently rendering, but there is a more generic system that is easy to use, and that can accomplish the same thing - but also can also be used for an endless amount of other purposes.

in my opinion this is always the more flexible approach.

mustan9
10-04-2006, 08:41 PM
I understand what your saying, but I'm lazy :shrug:

Having a little variable to check would be really handy.

I solved my problem a different way in the end. I wrote a three line pre-render script that goes over my Script controllers and switches them on.

Aearon
10-04-2006, 08:44 PM
i understand ;)

well cool, you found an even better way for doing this

CGTalk Moderation
10-04-2006, 08:44 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.