
v4.0
Returns the lock level for this parameter (siLockLevel) if it is locked. If it is not locked, siLockLevelNone (0) is returned.
/*
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;
Application.LogMessage( "The parameter lock level is: " + oParam.LockLevel );
Lock( "cone.polymsh.geom.subdivu", siLockLevelManipulation );
Application.LogMessage( "The parameter lock level is: " + oParam.LockLevel );
UnLock( "cone.polymsh.geom.subdivu", siLockLevelManipulation );
// Expected results:
//INFO : The parameter lock level is: 0
//INFO : The parameter lock level is: 7
|