SceneItem.GetLocalPropertyFromName

Introduced

v9.0 (2011)

Description

Returns a local property, given its scripting 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.GetLocalProperty( "kine" ) )
LogMessage( "Kinematics prop is local" );
else
LogMessage( "Kinematics prop is *not* local" );
// INFO : Display prop is *not* local
// INFO : Kinematics prop is local