ProjectItem.LockType operator

Introduced

v4.0

Description

Returns the siLockType for this object if it is locked. If it is not locked, siLockTypeNone (0) is returned.

C# Syntax

// get accessor

siLockType rtn = ProjectItem.LockType;

Examples

JScript Example

/*

	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

See Also

ProjectItem.LockLevel ProjectItem.IsLocked ProjectItem.SetLock ProjectItem.UnSetLock Parameter.LockType Lock Unlock