IsLocked (ProjectItem) *
Introduced
4.0
Description
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.
C# Syntax
Boolean ProjectItem.IsLocked();Return Value
Examples
JScript Example
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
See Also
|
|
|
|
Autodesk Softimage v7.5