The HairMod modifier available since 3ds Max 8 is a world-space modifier controlling the hair generation parameters.
Get/set the hair count. This is not the absolute number of hairs to be generated, as the final number of hairs is affected by other factors like density maps and cut maps.
Get/set the segments along the length of each hair.
Get/set the hair passes. Higher numbers increase the rendering time linearly and reduce the transparency of each pass.
Get/set theHairDensity. Default is 100 percent.If a Density Map is assigned, the Hair Density value is used to scale the influence of the Density Map.
Get/set theHairScale. Default is 100 percent.If a Scale Map is assigned, the Hair Scale value is used to scale the influence of the Scale Map.
Get/set the Cut Length. Default is 100 percent. If a Cut Map is assigned, the Hair Cut Length value is used to scale the influence of the Cut Map.
Get/set the Hair Random Scale value which controls the randomness of the hair scale. When this value is 0, all hairs are scaled according to the HairScale and Scale Map values. When set to 100, each hair can be scaled down between 0 and 100%. Default is 40 percent. If a Random Scale Map is assigned, the Hair Random Scale value is used to scale the influence of the Random Scale Map.
Get/set the Hair Root Thickness value which controls the thickness of the hair at the base. Default is 12. If a Root Thickness Map is assigned, the Hair Root Thickness value is used to scale the influence of the Root Thickness Map.
Get/set the Hair Tip Thickness value which controls the thickness of the hair at the tip. Default is 0. If a Tip Thickness Map is assigned, the Hair Tip Thickness value is used to scale the influence of the Tip Thickness Map.
Get/set the Hair Displacement value which controls the offset of the hair's root from the source surface. Default is 0. If a Displacement Map is assigned, the Hair Displacement value is used to scale the influence of the Displacement Map.
Toggle the Guides Interpolation on and off. When turned on (default), the hair guides will be interpolated across the surface. When turned off, maximum one guide will be drawn from the center of each triangle face. In both cases, the Density value / map will be taken into account.
Get/set the Occluded Amb value. Default is 40.
Get/set the Tip color. If a Tip Color Map is assigned, the Tip color will be multiplied by the Map color value to determine the final color.
Get/set the Root color. If a Root Color Map is assigned, the Root color will be multiplied by the Map color value to determine the final color.
Get/set the Hue Variation value.This parameter specifies the range within which the Hue value of the haircolor should be varied.Higher values result in hair strands with different colors.
Get/set the Value Variation value.This parameter specifies the range within which theValueof the haircolor should be varied.Higher values result in brighter/darker strands.
Get/set the Mutant Hair Color.Mutant Hairs are randomly selected and receive this color.Mutant hairs can be used to mix in hairs with a different (for example grey or white) color.
Get/set theMutantPercentage value.This parameter controls the percentage of hairs to receive the Mutant Hair Color.
Get/set the SelfShadowvalue. This parameter controls the magnitude of the self shadowing. A value of 0.0 defeats self shadowing, while a value of 100.0 results in maximum self shadowing.Default is 100.0
The Frizz effect calculates twoPerlinnoise fieldsand displaces the root and the tip of the hair. Both noise fields share the same frequency settings, and the same tip/root amplitudes. One of the noise fields is static relative to the hair.The second field can beanimatedthrough the hair over time to achieve effects like grassy fields in the wind with small computational overhead compared to real dynamics.
Get/set the Frizz Root value. Default is 15.5. This parameter controls the displacement of the hair at its root relatively to the surface normal. When Frizz Root is set to 0, the root of the hair is parallel to the surface normal.
Get/set the Frizz Tip value. Default is 130.0. This parameter controls the displacement of the hair's tip.
.FrizzFreqX (Frizz_Freq_X) : float .FrizzFreqY (Frizz_Freq_Y) : float .FrizzFreqZ (Frizz_Freq_Z) : float
Get/set the Frizz Frequency values in all 3 axes. These parameters control the frequency of the Frizz displacement noise fields.
Get/set theFrizz Animvalue whichadjusts the bias between the contributions of the static and animated noise fields. When set to 0, only the static field affects the hair. When set to 1, only the animated field affects the hair. If Anim Speed is set to 0, then a value of 1 will produce an identical result to a setting of 0 (if Anim Speed is set to 0, both noise fields will be coincident).
Get/set theAnim Speed value. Itis a multiplier controlling the speed at which the second (animated) noise field moves through space. When set to 0,there will be noeffect when increasing the Frizz Anim parameter. This value is multiplied by the X, Y, and Z components of the Frizz Anim Dir to determine the per frame offset of the animatednoise field.
Get/set theFrizz Anim Dirvector whichcontrols the direction of the frizz animation. This vector is not normalized before use. This means that you can apply little tweaks to the values to achieve fine control over the speed of the animation on a given axes.
The kink displacement works similar to Frizz, but it evaluates noise lookups along the whole length of the guide.
Multi Strand generates clumps of hair by scattering multiple hair strands per each hair strand that would normally be rendered.
Get/set the Count value.This parameter controls how many hairs will be generated per clump.
Get/set the Root Splay value.This parameter varies the offset from the center of the clump at the root.
Get/set the Root Splay value.This parameter varies the offset from the center of the clump at the tip.
Get/set the Randomize value.This parameter varies the scale of each hair in the clump.
Get/set the Simulation Start value.
Get/set the Simulation End value.
Toggle the "Use Growth Object" option on and off.Default is off.
Toggle the "Display Guides" option on and off. Default is off.
Get/set the Guide Color value.
Toggle the "Display Hairs" option on and off. Default is on.
Get/set the Hair Guide Color value.
Get/set the Display Percentage value.This parameter controls the percentage of hairs to be displayed in the viewports.
Get/set the Max. Hairs value.This parameter controls the absolute maximum number of hairs to be displayed in the viewports.
Toggle the "As Geometry" option on and off. Default is off. When set to true, the hair strands will be displayed as geometry. When set to false, the hairs will be displayed as lines.
Get/set the texture maps assigned to the hair controls.
Possible indices into the texture map array are:
31 - Multi Strand Root Splay Map
32 - Multi Strand Tip Splay Map
33 - Multi Strand Randomize Map
Get/set the elements of the array controlling whether to use the respective texture maps listed above. Setting the i-th element to false disables the texture map temporarily without removing it from the map slot - the capital "M" on the button turns into a lower-case "m". The indices into the array are identical to the ones listed above.
The same modifier can be applied as instance to multiple scene nodes.
Some of the methods below provide an optional instance: keyword parameter. If supplied, only the instance of the modifier applied to the specified node will be affected. If not supplied, all nodes sharing the modifier will be affected.
instance default value: undefined
Opens the Hair Style editor window. If the optional instance keyword parameter is supplied,only the hair instance applied tothe given node will be loaded in the Style editor.
Corresponds to pressing the "Style Hair..." button in the Tools rollout.
Converts the Hair to Mesh. If the optional instance keyword parameter is supplied, the hair from the given node will be converted. Corresponds to pressing the "Hair -> Mesh" button in the Tools rollout.
Resets the Rest. If the optional instance keyword parameter is supplied, the hair from the given node will be reset. Corresponds to pressing the "Reset Rest" button in the Tools rollout.
Regrows the Hair. If the optional instance keyword parameter is supplied, the hair from the given node will be regrown. Corresponds to pressing the "Regrow Hair" button in the Tools rollout.
Loads the Preset with the given name. Corresponds to pressing the "Load" button in the "Presets:" group of controls in the Tools rollout.
Saves a Preset under the given name. Corresponds to pressing the "Save" button in the "Presets:" group of controls in the Tools rollout.
instance default value: undefined
Copies the Hairdo.If the optional instance keyword parameter is supplied, the hair will be copied from the given node.Corresponds to pressing the "Copy" button in the "Hairdo:" group of controls in the Tools rollout.
Pastes the Hairdo.. If the optional instance keyword parameter is supplied, the hair will be pasted onto the given node.Corresponds to pressing the "Copy" button in the "Hairdo:" group of controls in the Tools rollout.
Converts the Guides to Splines. If the optional instance keyword parameter is supplied, the hair from the given node will be converted. Corresponds to pressing the "Guides -> Splines" button in the Tools rollout.
Converts the Hair to Splines. If the optional instance keyword parameter is supplied, the hair from the given node will be converted. Corresponds to pressing the "Hair -> Splines" button in the Tools rollout.
Converts the Hair to Mesh. If the optional instance keyword parameter is supplied, the hair from the given node will be converted. Corresponds to pressing the "Hair -> Mesh" button in the Tools rollout.