v4.0
Returns the siLockLevel for this object if it is locked. If it is not locked, siLockLevelNone (0) is returned.
// get accessor siLockLevel rtn = ProjectItem.LockLevel; |
/* This example shows how to find out the lock level for the object */ NewScene( null, false ); CreatePrim( "Cone", "MeshSurface" ); var oObj = Application.ActiveSceneRoot.FindChild( "Cone" ); oObj.SetLock( siLockLevelManipulation ); Application.LogMessage( "The cone's lock level is: " + oObj.LockLevel ); oObj.UnSetLock( siLockLevelAll ); Application.LogMessage( "Now the cone's lock level is: " + oObj.LockLevel ); // Expected result: //INFO : The cone's lock level is: 7 //INFO : Now the cone's lock level is: 0 |