GetAttributeValue (View)

Description

Returns an attribute value specific to the current View object.

Scripting Syntax

View.GetAttributeValue( Name )

C# Syntax

Object View.GetAttributeValue( String in_pParamName );

Parameters

Parameter

Type

Description

Name

String

The name of the view attribute to get. See View Attributes for a list of attributes views organized by view type.

Return Value

Variant

Examples

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



Autodesk Softimage v7.5