hwILayer SetName

Sets the name of a layer.

Syntax

hwILayer_handle SetName name_layer_name

Application

MotionView Tcl Modify

Inputs

new_layer_name
The name of this layer.

Example

To set the name of a newly-added layer to "Iteration 1":
hwi GetSessionHandle mySession
mySession GetProjectHandle myProject
set layerID [myProject AddLayer]
myProject GetLayerHandle myLayer $layerID
myLayer SetName "Iteration 1"

Error

Success (0) or an error code.

3 = HW_InvalidHandle
The handle used to invoke the method is no longer valid.