SceneItem.GetLocalPropertyFromName

導入

v9.0 (2011)

詳細

指定されたスクリプト名を持つローカルプロパティを戻します。

スクリプト 構文

oReturn = SceneItem.GetLocalPropertyFromName( [Name] );

戻り値

Property

パラメータ

パラメータ タイプ 詳細
Name String 取得するローカルプロパティのスクリプト名

JScript の例

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