PDA

View Full Version : scene object agent question (limited region)



jb_gfx
08-05-2004, 07:03 AM
Hi, I have a problem with the scene object agent if anyone can help (btw, I'm using LW8)...

I want to know the current state of limitedregion (is it on or off). So i read the boolean state of renderopts[8].

example :

scene = Scene();
if(scene.renderopts[8]){
my_code_here
}

My problem : this seams to only return the state of limited region when the scene WAS loaded in Layout. So if I load a scene with limited region ON, then I turn it OFF then call my script. It will return limitedregion==ON. But it's OFF... everybody is following? :)

Any idea how to get the limitedregion real state WHEN i call the script?

faulknermano
08-05-2004, 08:38 AM
Originally posted by jb_gfx


Any idea how to get the limitedregion real state WHEN i call the script?


i cant confirm that behavior, but if you're correct, then you can save out a scene file using SaveSceneCopy() and then read that file for your info.