[Closed] Please Need Help HAIR AND FUR
Hi, i need to collect into an array the HAIRS position, From HairAndFur modifier, or ony possible way to replace hairs with an light or other kindOf object?
I had to do something simular a while back, there is no way to read the data directly from the hair and fur modifier afaik. However, you can use maxscript functions to convert the hair to geo or splines. If you only want the postion of the hair root, or dont require any width or color data, you should convert to splines as it is much less geo to deal with.
If you want to say place a light at the root of a hair you would.
- Set the time slider to the time needed (the at time call doesn鈥檛 work for hair FYI).
- Convert the hair to splines or geo using the built in functions.
- loop through the splines and get the position of the first knot in the spline (root).
- create a light at that point.
- delete the spline or geo of the hair.
If you convert hair to geo it creates four sided tube hairs with the vertex colors set to the color the rendered hair would have at that point. I was able to get position of each knot in the hair, the color of the hair at these knots, and the hair width from this geo when I did it.
-bnvm