Save and import groom in mel/python

 
 
 
Posted by:deex
Data created:12 April 2016

Hi,

 

What is the command (in mel or python) to export and import groom please ?

I want to specify the path (for export and import) of my .oxgroom, the selected mesh,... to start to integrate all of this into a pipeline.

 

Thank you,

Damien

Just added to the docs:

http://ephere.com/plugins/autodesk/maya/ornatrix/docs/1/Grooms.html

Best regards,

Ivan

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev

Thank you !

Hi,

Can i have more informations about the mel command please ?

Like :

1) I have to select an object before ? A HairShape ?

2) The path is a full path like "C:\toto.oxgroom" or directory "C:\" ?

 

Thank you,

Damien

Right, I didn't mention the selection, I've updated the doc.

Save requires any operator of the hair stack to be currently selected, the whole stack is detected and exported (basically, the stack that is currently displayed in the panel).

Load depends on the groom file, if has optional=true, the groom will be attached to the current selection.

The -path is always a path to a single file, not a directory.

Ivan Kolev (Software Developer, EPHERE Inc.)

E-mail: ivan.kolev at ephere dot com

Discord: ikolev