SceneItem.GetPropertyFromName

Introduced

v9.0 (2011)

Description

Returns a property, given its scripting name.

Scripting Syntax

oReturn = SceneItem.GetPropertyFromName( [Name] );

Return Value

Property

Parameters

Parameter Type Description
Name String The scripting name of the property to get

Examples

JScript Example

NewScene( null, false );
var oSphere = CreatePrim( "Sphere", "MeshSurface" );
var oVisibility = oSphere.GetPropertyFromName( "visibility" );
LogMessage( "Render visibility: " + oVisibility.Parameters( "rendvis" ).Value );
// INFO : Render visibility: true