v4.0
このオブジェクトがロックされている場合に、オブジェクトのsiLockTypeを戻します。ロックされていない場合は、siLockTypeNone (0)が戻されます。
// get accessor siLockType rtn = ProjectItem.LockType; |
/* 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 |