Introduced
4.0
Description
Locks an object and all its children, or lock a parameter.
Note: If you try to lock an object that is already locked, the History Pane displays the error message 'ERROR : "2087 - The object: <object> is locked." and the command returns Nothing.
Scripting Syntax
Lock( [InputObjs], [Level] )
Parameters
|
Parameter |
Type |
Description |
|
InputObjs |
List of objects to lock. Can be objects or parameters. Default Value: Current selection. |
|
|
Level |
The lock level is a bit field value that represent a area that is locked. The maximum level is siLockLevelAll which is all the level combined. One or many level can be set on an object. When the level is 0 (siLockLevelNone) the lock is removed. Default Value: siLockLevelAll |
See Also
|
|
|
Examples
• See Lock.1.js
• See Lock.2.js
• See Lock.3.js
Autodesk Softimage 2011