Returns an attribute value specific to the current View object.
Object View.GetAttributeValue( String in_pParamName ); |
oVariant = View.GetAttributeValue( Name ); |
Parameter | Type | Description |
---|---|---|
Name | String | The name of the view attribute to get. See ViewAttributes for a list of attributes views organized by view type. |
' ' This example demonstrates how to get the layout state of the viewports (A,B,C,D) ' NewScene null, false CreatePrim "Sphere", "MeshSurface" ' Modify the layout set oVM = Application.Desktop.ActiveLayout.Views( "vm" ) oVM.SetAttributeValue "layout", "vertical:a" LogMessage "A: " & oVM.GetAttributeValue( "layout:a" ) LogMessage "B: " & oVM.GetAttributeValue( "layout:b" ) LogMessage "C: " & oVM.GetAttributeValue( "layout:c" ) LogMessage "D: " & oVM.GetAttributeValue( "layout:d" ) ' Expected result: ' INFO : A: vertical ' INFO : B: default ' INFO : C: hidden ' INFO : D: default |
/* This example demonstrates how to get the 'scope' of an explorer view */ NewScene( null, false ); var l = Desktop.ActiveLayout; var v = l.CreateView( "Explorer", "Explorer" ); // Show default scope value LogMessage( v.Name + " scope: " + v.GetAttributeValue("scope") ); // set scope to Source and clips v.SetAttributeValue( "scope", "Sources and Clips" ); LogMessage( v.Name + " scope: " + v.GetAttributeValue("scope") ); // Expected result: //INFO : Explorer scope: Scene //INFO : Explorer scope: Sources and Clips |