Interface: ViewCubeOps

Interfaces > Core Interfaces > ViewCubeOps

 

   

Core Interfaces - Quick Navigation

The ViewCubeOps Interface exposes the ViewCube viewport navigation tool's settings to MAXScript.

Available in 3ds Max 2009 and higher.

   

Properties:

Display Options

ViewCubeOps.Visibility : bool : Read|Write 		

Get/set the ViewCube visibility. Corresponds to the "Show the ViewCube" option in the dialog.

   

ViewCubeOps.All3DViewportsDisplay : bool : Read|Write 	 

Get/set whether to display the ViewCube in all views or only in the active view.

When set to true , the radio button will be set to "In all Views".

When false , it will be set to "Only in Active View".

   

ViewCubeOps.Size : integer : Read|Write   

Get/set the item in theViewCube Sizedrop-down list.

Possible values are:

0 - Large

1 - Normal

2 - Small

3 - Tiny

   

ViewCubeOps.MinOpacity : float : Read|Write 

Get/set the inactive ViewCube opacity value. Default is 0.5 (50%).

The value can be any floating point value between 0.0 and 1.0.

Other than the drop-down list in the dialog, any value is allowed.

   

When Dragging on the ViewCube

ViewCubeOps.DragSnapping : bool : Read|Write 

Get/set the state of the "Snap To Closest View" option.

   

When Clicking on the ViewCube

ViewCubeOps.FitToView : bool : Read|Write 

Get/set the state of the "Fit-To-View on view change" option.

   

ViewCubeOps.AnimatedTransition : bool : Read|Write 

Get/set the state of the "Use animated transitions when switching views" option.

   

ViewCubeOps.KeepSceneUp : bool : Read|Write 

Get/set the state of the "Keep Scene Upright" option.

   

Compass

ViewCubeOps.DrawCompass : bool : Read|Write 

Get/set the state of the "Show the Compass below the ViewCube" option.

   

ViewCubeOps.AngleOfNorth : float : Read|Write 

Get/set the "Angle Of North (degrees)" value.

   

Methods:

<void>ViewCubeOps.GoHome() 

Resets the active view to its Home state.

   

<void>ViewCubeOps.SetCurrentViewAsHome() 

Sets the current view as the Home view.

   

<void>ViewCubeOps.SetCurrentViewAsFront() 

Sets the current view as the Front view.

   

<void>ViewCubeOps.ResetFront() 

Resets the Front view to the default Front view.

   

<void>ViewCubeOps.Orthographic() 

Sets the active view to Orthographic mode.

   

<void>ViewCubeOps.Perspective() 

Sets the active view to Perspective mode.

   

<void>ViewCubeOps.SaveOptions() 

Saves the current settings.

   

<void>ViewCubeOps.LoadOptions()

Loads the View Cube options.

Available in 3ds Max 2016 and higher.