Skip to content

Documentation / loaders / HairFileImportOptions

Type Alias: HairFileImportOptions

HairFileImportOptions = StrandRibbonOptions & object

Defined in: libs/loaders/src/hair/hair_importer.ts:31

Options controlling how a HAIR file is turned into renderable geometry.

Type Declaration

upAxis?

optional upAxis?: StrandUpAxis

Up axis of the file's control points. Defaults to z, the format's convention; see ParseHairFileOptions.upAxis.

Remarks

The Alembic importer's options plus an up axis, which Alembic does not need: an XGen archive is Y-up already, while a HAIR file is Z-up by convention.

Note that scale usually wants to stay at 1 here. Unlike an XGen archive, which is reliably authored in Maya centimetres, a HAIR file records no unit at all, and the published models are modelled at whatever size suited their author.

Released under the MIT License.