I need to access the FOV property of the Perspective viewport. This is not the same as the FOV property associated with target and free cameras.
To access the FOV property non-programatically, right click on the viewport name (top left of each viewport), go to configure and under "perspective user view" you can change the FOV.
-
In 3ds Max 2008 and above, you can use
viewport.setFOV 50.0To modify the field of view of the currently active viewport.
Check out "Accessing Active Viewport Info, Type, and Transforms" in the MaxScript help
So:
Utility FieldOfView "Field of View" ( slider fov "Field of View" pos:[17,43] width:128 height:44 range:[25,100,viewport.GetFOV()] type:#float on fov changed val do ( viewport.setFOV val ) )Will create the usual little Utility that will adjust the Field of View of the currently active viewport.
mk:@MSITStore:C:\Program%20Files\Autodesk\3ds%20Max%202009\help\maxscript.chm::/Accessing_Active_Viewport_Info_Type_and_Transforms.htm
C Johnson : This is the correct answer. I was the one who put that into maxscript many years ago.
0 comments:
Post a Comment