v2.0
edit
Sets the display mode for a camera.
SetDisplayMode( [InputObjs], [DisplayMode] ); |
Parameter | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InputObjs | String | List of cameras to set.
Default Value: Selected properties |
||||||||||||||||||||
DisplayMode | String | Display mode
Default Value: wireframe
|
' Set User Camera in viewport A to wireframe mode SetDisplayMode "Views.ViewA.UserCamera", "wireframe" |
// Demonstrate how SetDisplayMode is actually just a shortcut // to setting values on the Camera's Display Property. var camera = Dictionary.GetObject( "Views.ViewA.UserCamera" ) var displayModeProp = camera.Properties( "Camera Display" ) ; logmessage( "Static Display mode before : " + displayModeProp.viewportmodename.Value ) ; SetDisplayMode( camera , "shaded" ) ; logmessage( "Static Display mode after : " + displayModeProp.viewportmodename.Value ) ; //Result: //INFO : Static Display mode before : wireframe //INFO : Static Display mode after : shaded InspectObj( displayModeProp ) ; |