View Full Version : Determining locked viewport in render scene dialog

06 June 2008, 08:55 AM

is there a way to get the information which viewport or camera is selected in the dropdown-box of the render scene dialog with maxscript (and if so how)?

Using the system global viewport.activeViewport or the function getActiveCamera() returns the viewport/camera selected in the main 3ds editor. In the render scene dialog there's the opportunity to "lock" a viewport/camera to be rendered so one could select Camera01 in the main GUI but the dropdown-box in the render scene dialog will stay e.g. at Camera04. I would want to get the latter information.

Thanks in advance for any hint,


06 June 2008, 09:33 AM
In 3dsmax 2009 the following variables have been added:
rendViewIndex, rendUseActiveView and renderPresetMRUList.

I don't think there's any way to get this information in versions < 2009 though.


06 June 2008, 09:47 AM
Thank you Martijn!

We're running 2008 here so i didn't come across those variables yet.

CGTalk Moderation
06 June 2008, 09:47 AM
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.