// 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 ) ;
|