## View.GetAttributeValue

### Description

Returns an attribute value specific to the current View object.

### C# Syntax

    Object View.GetAttributeValue( String in_pParamName );

### Scripting Syntax

    oVariant = View.GetAttributeValue( Name );

### Return Value

Variant

### Parameters

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.

### Examples

#### 1. VBScript Example

    '
    ' 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

#### 2. JScript Example

    /*
            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

### See Also

View.SetAttributeValue