Skip to content

Documentation / scene / ZHairFileJSON

Type Alias: ZHairFileJSON

ZHairFileJSON = object

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:94

The manifest at the head of a .zhair file.

Properties

version

version: number

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:96

Format version; ZHAIR_VERSION is the only one written.


sourcePath?

optional sourcePath?: string

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:98

Path of the archive this was converted from, for reimport.


sourceFormat?

optional sourceFormat?: "alembic" | "hair"

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:100

Container the strands came out of.


unitScale

unitScale: number

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:110

Scale that converts the stored units to metres.

Remarks

Decided at conversion time, because only the importer knows what the source meant: Alembic from Maya is authored in centimetres, while .hair records no unit at all and gets a scale fitted from its bounds. Positions are stored unscaled so the number stays visible and adjustable.


strandSets

strandSets: ZHairStrandSetJSON[]

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:112

Strand sets, one per source curve object.

Released under the MIT License.