v4.0
Returns whether an object is locked or not. If there is only one lock level that is set on the object it will be consider locked. If the object is not locked siLockLevelNone is returned.
oBoolean = ProjectItem.IsLocked(); |
NewScene( null, false ); CreatePrim( "Cone", "MeshSurface" ); var oObj = Application.ActiveSceneRoot.FindChild( "Cone" ); oObj.SetLock( siLockLevelManipulation ); Application.LogMessage( "Is the cone locked?: " + oObj.IsLocked() ); oObj.UnSetLock( siLockLevelManipulation ) Application.LogMessage( "Is the cone still locked?: " + oObj.IsLocked() ); // Expected result: //INFO : Is the cone locked?: true //INFO : Is the cone still locked?: true |