ProjectItem.IsLocked.1.js Example

Applies To

ProjectItem.IsLocked method

Description

This example demonstrates how to use the ProjectItem.IsLocked method.

Code

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

Keywords

ProjectItem IsLocked


Autodesk Softimage 2011