Go to: Synopsis. Return value. MEL examples.

Synopsis

makeCurvesDynamic(int $version, string $args[] )

This command makes the selected nurbs curves into dynamic Maya hair objects. It is equivalent to the menu call "makeSelectedCurvesDynamic". The selection may consist of curves as well a mesh to attach the curves to using closest point of the first cv of each hair to the mesh. If a hairSystem node is also selected the dyamic curves will be added to it, otherwise a new hair system will be created.

Return value

None

Arguments

Variable Name Variable Type Description
$versionintThe version of Maya for this command. This allows old scripts using this call to still work after changes to this function. $args[0] = surfaceAttach If true then connect the hairs to a surface(also selected) basing the uv on the nearest point to the first curve cv $args[1] = snapToSurface If true and attaching to a surface then also snap the curve to the surface. $args[2] = matchPosition If true then make the input curve a degree one so resulting output curve exactly matches the position. $args[3] = createOutCurves If true then output curves are created $args[4] = createPfxHair If true then hair is created.

MEL examples

  makeCurvesDynamic 2 { "0", "0", "0", "0", "1" };