Parameter.LockType operator

Introduced

v4.0

Description

Returns the lock type for this parameter (siLockType) if it is locked. If it is not locked siLockTypeNone (0) is returned.

C# Syntax

// get accessor
siLockType rtn = Parameter.LockType;

Examples

JScript Example

/*
	This example demonstrates how to find out the lock level on a parameter
*/
NewScene( null, false );
var oObj = Application.ActiveSceneRoot.AddGeometry( "Cone", "MeshSurface" );
var oParam = oObj.subdivu;
Lock( oParam, siLockLevelManipulation );
Application.LogMessage( "The parameter lock type is: " + oParam.LockType );
UnLock( "cone.polymsh.geom.subdivu", siLockLevelManipulation );
// Expected result:
//INFO : The parameter lock type is: 2

See Also

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