Author Topic: Hair mesh strips to spline  (Read 2492 times)

2016-08-14, 23:24:36

GabaCGStudio

  • Guest
i'm looking for a maxscript that convert hair mesh strips object like as shown in attached image to spline for using as guidline hair ...
can somebody informed me?

2016-08-15, 12:05:08
Reply #1

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
I don't think there's a script to do just that... Mesh is simply a cluster of edges, and script is not an artificial intelligence to figure out which edges you want to be extracted.

That being said, I think I've found a recipe that will work for this particular case, as all of the strips have just two rows of quads, so:

1, You quadrify the mesh using quadrify all operation from ribbon
2, You select all borders of mesh
3, You convert border selection to edge selection
4, You invert edge selection to get everything except border
5, You shrink edge selection once to get just center loop
6, You use loop command to extend selected loops to the both ends of hair strips
7, You use Create shape from selection command to extract them into splines.

Although hard to tell if it will work for hair as direction of the spline probably matters.

PS: Sorry bout the music, I forgot to turn off recording of computer sounds.

2016-08-16, 12:12:28
Reply #2

GabaCGStudio

  • Guest
nice method ... i'll convert this to maxscript :]