unreal.HairCardGeomData¶
- class unreal.HairCardGeomData(cards_length: None = [], cards_width: None = [], cards_lr_ratio: None = [], cards_top_vec: None = [], cards_type: None = [], cards_label: None = [], cards_phys_grp_idx: None = [])¶
Bases:
StructBaseOutput of GenerateCardsGeometry / input to ClusterTextures and all cross-group stages. Per-settings-group; saved and loaded by SaveGeomData / LoadGeomData. CardCount is used by cross-group stages to compute global card ID offsets.
C++ Source:
Plugin: HairCardGenerator
Module: HairCardGeneratorEditor
File: HairCardGenTypes.h
Editor Properties: (see get_editor_property/set_editor_property)
cards_label(Array[int32]): [Read-Write] (N_strands,) card index per strand (global card ID in cross-group context)cards_length(Array[float]): [Read-Write] (N_cards,) card lengthcards_lr_ratio(Array[float]): [Read-Write] (N_cards,) left/right border ratiocards_phys_grp_idx(Array[uint8]): [Read-Write] (N_cards,) physics group label per cardcards_top_vec(Array[float]): [Read-Write] (N_cards * 3,) flattened card top-vector (used for orientation)cards_type(Array[int32]): [Read-Write] (N_cards,) card type id. Separates flyaway cards from standard cards for texture clustering. Stored in card_type.npy (formerly cards_texture_group.npy). 0 - standard card 1 - flyaway cardcards_width(Array[float]): [Read-Write] (N_cards,) card width
- property cards_label: None¶
[Read-Write] (N_strands,) card index per strand (global card ID in cross-group context)
- Type:
(Array[int32])
- property cards_phys_grp_idx: None¶
[Read-Write] (N_cards,) physics group label per card
- Type:
(Array[uint8])
- property cards_top_vec: None¶
[Read-Write] (N_cards * 3,) flattened card top-vector (used for orientation)