v4.0
Returns the object that is master of the lock in an XSICollection. The lock master is the object that has been locked initially. Note that it returns an empty list when the object is not locked.
// get accessor CXSICollection rtn = ProjectItem.LockMasters; |
/* This example shows how to find the lock master */ NewScene( null, false ); CreatePrim( "Cone", "MeshSurface" ); var oObj = Application.ActiveSceneRoot.FindChild( "Cone" ); oObj.SetLock( siLockLevelManipulation ); Application.LogMessage( "The cone's lock master is: " + oObj.LockMasters(0) ); oObj.UnSetLock( siLockLevelAll ); Application.LogMessage( "The cone's lock master is: " + oObj.LockMasters(0) ); // Expected result: //INFO : The cone's lock master is: cone //INFO : The cone's lock master is: undefined |
ProjectItem.LockType ProjectItem.IsLocked ProjectItem.SetLock ProjectItem.UnSetLock Parameter.LockLevel Lock Unlock