SceneItem.GetPropertyFromName

Introduced

v9.0 (2011)

Description

Returns a property, given its scripting name.

Note: This method could return an invalid object in python, use SceneItem.GetPropertyFromName2 instead.

C# Syntax

Property SceneItem.GetPropertyFromName( String in_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