*morphlistupdate

Updates the morphing undo/redo list.

Syntax

*morphlistupdate mode start finish

Type

HyperMesh Tcl Modify

Description

This command will either clear or compress the morphs on the undo/redo list for the given range. If start and finish are both set to zero, the entire list will be affected. If a morph is cleared while still applied to the model, the morph will not be unapplied during clearing and thus will end up being permanently applied.

The API function hm_morph_getinfo will return the current value of the counter and the total number of morphs on the undo/redo list.

Inputs

mode
The type of update to perform. Valid values are:
0 - Clear selected morphs
1 - Compress selected morphs
start
Starting morph number (1 or higher).
finish
Finishing morph number (1 or higher).

Examples

To clear morphs 1, 2, and 3 from the morph list:

*morphlistupdate 0 1 3

To compress morphs 1, 2 and 3 into a single morph. If the morph list contained more morphs, the first morph will be the same as the first three morphs applied simultaneously followed by the rest of the morphs on the list:

*morphlistupdate 1 1 3

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}