unreal.HairCardsGeometrySettings

class unreal.HairCardsGeometrySettings(generation_type: HairCardsGenerationType = Ellipsis, cards_count: int = 0, cluster_type: HairCardsClusterType = Ellipsis, min_segment_length: float = 0.0)

Bases: StructBase

Hair Cards Geometry Settings

C++ Source:

  • Plugin: HairStrands

  • Module: HairStrandsCore

  • File: GroomAssetCards.h

Editor Properties: (see get_editor_property/set_editor_property)

  • angular_threshold (float): [Read-Write] Max angular difference between adjacents vertices to remove vertices during simplification with MinSegmentLength, in degrees.

  • cards_count (int32): [Read-Write] Define how many cards should be generated. The generated number can be lower, as some cards can be discarded by other options.

  • cluster_type (HairCardsClusterType): [Read-Write] Quality of clustering when group hair to belong to a similar cards. This does not change the number cards, but only how cards are shaped (size/shape)

  • generation_type (HairCardsGenerationType): [Read-Write] Define how cards should be generated. Cards count: define a targeted number of cards. Use guides: use simulation guide as cards.

  • max_cards_length (float): [Read-Write] Length above which generated cards are discard, as there are considered too larger. (Default:0, which means no trimming)

  • min_cards_length (float): [Read-Write] Length below which generated cards are discard, as there are considered too small. (Default:0, which means no trimming)

  • min_segment_length (float): [Read-Write] Minimum size of a card segment

property cards_count: int

[Read-Write] Define how many cards should be generated. The generated number can be lower, as some cards can be discarded by other options.

Type:

(int32)

property cluster_type: HairCardsClusterType

[Read-Write] Quality of clustering when group hair to belong to a similar cards. This does not change the number cards, but only how cards are shaped (size/shape)

Type:

(HairCardsClusterType)

property generation_type: HairCardsGenerationType

define a targeted number of cards. Use guides: use simulation guide as cards.

Type:

(HairCardsGenerationType)

Type:

[Read-Write] Define how cards should be generated. Cards count

property min_segment_length: float

[Read-Write] Minimum size of a card segment

Type:

(float)