ProjectItem.LockType operator

導入

v4.0

詳細

このオブジェクトがロックされている場合に、オブジェクトのsiLockTypeを戻します。ロックされていない場合は、siLockTypeNone (0)が戻されます。

C#構文

// get accessor

siLockType rtn = ProjectItem.LockType;

JScript の例

/*

	This example shows how to find out the lock type for the object

*/

NewScene( null, false );

CreatePrim( "Cone", "MeshSurface" );

var oObj = Application.ActiveSceneRoot.FindChild( "Cone" );

oObj.SetLock( siLockLevelManipulation );

Application.LogMessage( "The cone's lock type is: " + oObj.LockType );

oObj.UnSetLock( siLockLevelAll );

Application.LogMessage( "Now the cone's lock type is: " + oObj.LockType );

// Expected result:

//INFO : The cone's lock type is: 2

//INFO : Now the cone's lock type is: 0

関連項目

ProjectItem.LockLevel ProjectItem.IsLocked ProjectItem.SetLock ProjectItem.UnSetLock Parameter.LockType Lock Unlock