*morphconstraintcreatesmooth

Creates a smooth type morphconstraint for the selected nodes.

Syntax

*morphconstraintcreatesmooth nlist type closed name color

Type

HyperMesh Tcl Modify

Description

This command creates a smooth type morphconstraint for the selected nodes. During morphing, the perturbations of the nodes or dependent handles will be modified using a spline based approximation so that edge domains running along the selected entities will have smooth contours.

Inputs

nlist
The ID of the list containing the nodes. Valid values are 1 and 2.
type
0 - Apply to nodes. All handles on the node list serve as anchors for the spline curve and nodes are adjusted to the curve based on influences
1 - Apply to dependent handles. Only the independent handles on the node list serve as anchors and the dependent handles are adjusted to the curve based on influences
closed
0 - Open ended
1 - Loop. The first node on the list will be added to the end to form a loop.
name
The name of the morph constraint.
color
The color of the constraint. Valid values are 1 through 64.

Example

To create a smooth morphconstraint for nodes 1-5 with a closed loop:

*createlist nodes 1 1 2 3 4 5
*morphconstraintcreatesmooth 1 0 1 "smooth" 32

Errors

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