Grooms 

Grooms in Ornatrix are hair presets. A groom contains a predefined list of operators and their parameters to generate specific hair style, effect, or anything else which can be procedurally done in Ornatrix. For example, the default "Hair Ball" set up in Ornatrix is a groom which adds guide generation, editing, hair generation, render settings operators and by default, the Hair Physical Shader is automatically applied in supported versions of Maya. Grooms can create new objects inside a scene or be applied to existing objects by growing hair on them.

Grooms are stored in self-containing XML files with .oxmaya extension. These files can be saved and shared.

 

Grooms directory 

The grooms are loaded from a pre-defined directory by default. By using the Browse... button you can change the directory from which grooms are loaded. The changed directory will be used next time you attempt to load a groom. You can use the Default Directory button to go back to the default directory. The default grooms directory is:
  • Windows: C:\ProgramData\Ephere\OrnatrixMaya\Grooms
  • OSX: /Users/Shared/Ephere/OrnatrixMaya/Grooms
  • Linux: /opt/Ephere/OrnatrixMaya/Grooms

The purpose of choosing this directory was to allow both read and write access to grooms for all users on a computer. This way grooms can be loaded and saved into a central directory by any user on a workstation.

 

Changing default grooms directory 

It may become necessary to change the location of the directory from where grooms are loaded. For example, you may want to have one central directory on your network accessible to all workstations containing the grooms.

To change the default grooms directory add an environment variable ORNATRIX_MAYA_GROOMS_DIR containing the default grooms path.

 

Scripting 

 

MEL access 

Use these functions to save and load grooms:

OxSaveGroom [-path <string>] [-thumbnail <string>] [-optional]

OxLoadGroom [-path <string>] [-scale <double>] [-detail <double>]

(the options can be shortened to their first letters)

The Save command requires a hair object to be currently selected.
The Load command depends on the groom being loaded, if "Base Object Is Optional" is enabled the groom will be planted to the currently selected object, if any. If the groom has "Base Object Is Optional" disabled, the current selection is ignored and the groom gets attached to the base object that it was saved with.

The -path option specifies the path and name of the groom file that will be used. If it contains just a file name, the current grooms directory will be used.
If -path is missing, the file selection dialog will be displayed and -thumbnail will be ignored.

-thumbnail provides a full path to a thumbnail image file.

Missing Something? Let us know if this page needs more information about the topic.