This script was written by Mario Baldi (BluEgo on CGTalk) in response to my request that he modify his existing zbrush-to-maya hair script. I’m testing it now, but I was hoping the blender/maya community here could battle test it as well so we can provide feedback.
Essentially, this will allow us to use blender for hair grooming and export those results to maya for dynamics and rendering in maya (mental ray/renderman/arnold/vray/whatever)
export_curves.py.zip (3.98 KB)
Here are comments and instructions from Mario:
I decided to go “wild”, and write an exporter for blender:
This was my very first script for blender, and I really liked it.
I could improve it a bit with more options, but it should do what you need.
So, how to use it?
This is an addon, so you will have to install it first.
Go to File > User Preferences > Addons tab > click on Install Addon and choose export_curves.py.
If you want to keep it in the exporter list even when you close blender, you will have to click on Save as Default.
Now, as this exports only curves, and not poly lines, you will have to convert your hairstyle to curves.
So, after converting the hair particle system to polylines, select the polylines and click “alt-c” and confirm.
Now you are able to save your curves item to .ma.
Go to File > Export > Maya curves (.ma), choose if you want to export only selected curves, then save.
That’s it, let me know if you run into any problems.
I hope you will find it useful