Although hair segments are normally fixed in length, you can temporarily change their behavior in "stretchy" mode to allow them to change length. When you style or animate hair in stretchy mode, the hair strands behave more like curves than an IK chain with fixed segment lengths.
Guide hairs with tips selected and translated in one direction. |
Guide hairs with tips selected and translated in same direction in stretchy mode. |
In stretchy mode, you can style hair using various deformations or transformations. Then when you resample the hairs, each hair segment is approximated in a uniform way over the length of the hair strands to smooth out the shape. After you resample, you can apply dynamics to the hair to animate it (see the following section, Styling Hair in Stretchy Mode).
Stretchy mode allows each hair segment to change length in response to how an animated deformation (such as a lattice or envelope) changes the shape of the hair. Animating hair in stretchy mode can alleviate the problem of hair sometimes getting kinked when being deformed (see Animating Hair with Deformations in Stretchy Mode).
You can style hair in stretchy mode using any deformation or transformation. Combined with proportional modeling or the Brush tool, using stretchy mode for styling can be a great way to style hair in an organic fashion. As well, it's a quick way to change the hair length.
After the style is the way you want it, you need to resample the hair so that the hair segments are uniform again. You can then turn off stretchy mode and apply dynamics to animate the hair.
To style hair in stretchy mode
Do one of the following to activate stretchy mode:
Style the hair using any of the deform operators or transformations.
Notice that the hair strands act as if they are linear curves, with no IK behavior.
After the hair is styled, resample the hair by choosing Length Resample Stretched Hairs.
This resamples the guide hairs, approximating the shape as much as possible so that the 15 hair segments are evenly distributed along the length of the guide hair. This allows for better deformation for animation and accurate dynamics simulation.
Resampling works based on selection, so only the selected strands that you have styled in stretchy mode are resampled.
To deactivate stretchy mode, click the Stretchy button again or click the Fix button beside it. When you click Fix, the hair is also automatically resampled.
Animating Hair with Deformations in Stretchy Mode
When you animate hair with a deformation operator (such as an envelope or lattice), the deformation can cause the hair to get kinked because it tries to compress the hair but can't because the hair segments are fixed in length. When the hair is animated in stretchy mode, however, it allows the hair segments to stretch and compress without kinking.
When you activate stretchy mode, the deformation operators receive a <stretchy> flag to indicate that they are to run in this mode. This is displayed in the hair's operator stack in the explorer, as shown on the left.