SceneItem.GetLocalPropertyFromName

Introduced

v9.0 (2011)

Description

Returns a local property, given its scripting name.

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

C# Syntax

Property SceneItem.GetLocalPropertyFromName( String in_name );

Scripting Syntax

oReturn = SceneItem.GetLocalPropertyFromName( [Name] );

Return Value

Property

Parameters

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

Examples

JScript Example

NewScene( null, false );
var oSphere = CreatePrim( "Sphere", "MeshSurface" );
if( oSphere.GetLocalPropertyFromName( "display" ) )
LogMessage( "Display prop is local" );
else
LogMessage( "Display prop is *not* local" );
if( oSphere.GetLocalPropertyFromName( "kine" ) )
LogMessage( "Kinematics prop is local" );
else
LogMessage( "Kinematics prop is *not* local" );
// INFO : Display prop is *not* local
// INFO : Kinematics prop is local