Fibermesh to maya curves (script)

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  02 February 2012
So, I just understood what the problem is with goz.
I assumed that the topology pattern stayed coherent for every polystrip, and actually it is, but it is granted only for vertices, not for edges which I used til now to generate the guides.
It is extremely fast to correct it, but my girlfriend has just come back into the city, so I will have to wait til tomorrow to fix it

In the meanwhile, import the fibermesh as obj, as it looks to work correctly.

@GQ1: I will do a tutorial this weekend
  02 February 2012
tu sei un principe, Grazie mille

  02 February 2012
Does anyone know if the following works on Mac os X?

Is this better than the above script?

  02 February 2012
So, I finally updated the script.
Now it works with goz and is 50-70% faster
As I said I will add more options to edit the generated curves, to better integrate them with existing hair solutions in maya.

@trashtalk: the link you posted refers to the first released solution about converting fibermesh to curves. I don't know if it is compiled for Mac Os X though, but for sure it is a good solution and will cost you €20, not so much in the end.
  02 February 2012
Hi Mario
i tried your script with the last zbrushR2b and goz for maya 2011: it works!
When i'm lucky and ZB doesnt crash, i export a fibermesh to maya usign goz, and then i run your script .. u can see here a quick test with 10.000 fibers, converted in curves using your amazing script
here some screengrabs

thank you for this amazing work!!

I also tried this script..
..but your script is really better man!

Francesco Lupo
"..ora che ho perso la vista.. ci vedo di più"
  02 February 2012
Thank you so much Francesco for your screen grabs!

Here there is a small video showing the script in action:

At 0:49 you will notice that I select the code in the script editor and I execute it. To fire it press ctrl+enter.
Actually the best way is to select that code and drag'n drop it into a shelf (mid btn), so you will have only to click the newly created button next time.

furthermore, I want to report again the code to execute the script in gui mode, as I... emh, made a typo error (I corrected the previous post too):

import fibermesh_to_curves as ftc

Last edited by BluEgo : 02 February 2012 at 07:53 PM.
  02 February 2012
And here a small video for newbies looking for a way to convert curves to an hair system:

PFx hair don't really look so great tough, as they not blend nicely together.
You could also try to use maya fur combed by maya hair, but if you have it, use Shave and a Haircut and comb its guides with the curves generated by the script.
  02 February 2012

and thanks for the tutorials, she works very nicely with GoZ.

  02 February 2012
eheheh and also thanks for this Mario!!!

Francesco Lupo
"..ora che ho perso la vista.. ci vedo di più"
  02 February 2012
I managed to briefly check the new version on both Maya 2009Sp1 and Maya 2012 SAP. Works smoothly without a hick-up! Many thanks again.

"Knowing is not enough, we must apply. Willing is not enough, we must do."-Bruce Lee

  02 February 2012
I just updated the link.
I added the chance to eliminate all curves shorter than one value, as not everyone needs tiny curves. Currently you can use it only firing a command, but I am planning to add a panel to the gui with some new features (like this one), to edit the generated curves.

Here the necessary steps:
1) Download the script here and replace the old one
2) Select curves (or a group which contains them)
3) write this code in the script editor (python) and execute it:

import fibermesh_to_curves as ftc

...where instead of 0.5 you specify a value between 0 and 1.
This value represents the percent of the longest curve. So, for example, if your longest curve is 5units long, and you specify 0.1 as value, all curves shorter than 0.5 units will be deleted

Kudos to Kenneth Finlayson having suggested this feature!

Added a tab in the gui to delete tiny curves

Last edited by BluEgo : 02 February 2012 at 03:59 AM.
  02 February 2012
Why cannot I download?
  02 February 2012
Hi KingMax02,
Have you succeded downloading the script? I just tried on another platform, in another location and with another connection, and it works fine by my side.

Please try again:
... and let me know if you still have the problem.

  02 February 2012
Thanks for making this free - I tried it out this morning and it works like a charm
  02 February 2012
This works in OSX as well ? Thanks
LDEA Kon Kuatica
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:59 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.