Methods Signatures
Locks the hair object. |
|
Checks if the hair object is locked. |
|
Unlocks the hair object. |
|
Gets the guides of this hair object. |
|
Gets the dynamic guides of this hair object. |
|
Generates hair for the hair object. |
|
Removes the guides of this hair object. |
|
Gets the root object and tag! |
|
Updates this hair object. |
|
Sets guides for this hair object. |
Inheritance
Parent Class:
Methods Documentation
-
HairObject.
Lock
(self, pDoc, pThread, bValidate=True, flags=0)¶ Locks the hair object.
- Parameters
pDoc (c4d.documents.BaseDocument) – The document.
pThread (c4d.threading.BaseThread) – The thread.
bValidate (bool) – Validate the lock.
flags (int) –
Lock flags
Symbol ID
Description
HAIR_LOCK_FLAGS_ANIMATING
Animating.
HAIR_LOCK_FLAGS_FULL_UPDATE
Full update.
HAIR_LOCK_FLAGS_NO_TRANSFORM
No transformation.
- Return type
bool
- Returns
True if successful, otherwise False.
-
HairObject.
IsLocked
(self)¶ Checks if the hair object is locked.
- Return type
bool
- Returns
True if the hair object is locked, otherwise False.
-
HairObject.
Unlock
(self)¶ Unlocks the hair object.
-
HairObject.
GetGuides
(self)¶ Gets the guides of this hair object.
- Return type
- Returns
The guides.
-
HairObject.
GetDynamicGuides
(self)¶ Gets the dynamic guides of this hair object.
- Return type
- Returns
The dynamic guides.
-
HairObject.
GenerateHair
(self, flags, count, segments)¶ Generates hair for the hair object.
- Parameters
flags (int) –
The generate flags:
Symbol ID
Description
HAIR_GENERATE_FLAGS_NONE
None
HAIR_GENERATE_FLAGS_NO_MATERIAL
No material.
HAIR_GENERATE_FLAGS_NO_DYNAMICS
No dynamics.
HAIR_GENERATE_FLAGS_NO_TRANSFORM
No transformation.
HAIR_GENERATE_FLAGS_NO_DEFORMERS
No deformers.
count (int) – The hair count.
segments (int) – The segments.
-
HairObject.
RemoveGuides
(self)¶ Removes the guides of this hair object.
-
HairObject.
GetRootObject
(self)¶ Gets the root object and tag!
root = ho.GetRootObject() if not root: return print(root["pObject"], root["pTag"])
- Return type
Optional[Dict[“pObject”: c4d.BaseObject, “pTag”: c4d.BaseTag]]
- Returns
The root object and tag or None.
-
HairObject.
Update
(self)¶ Updates this hair object.
- Return type
bool
- Returns
True if successful, otherwise False.
-
HairObject.
SetGuides
(self, guides, clone)¶ Sets guides for this hair object.
- Parameters
guides (c4d.modules.hair.HairGuides) – Guides to set.
clone (bool) – Clone the supplied guides.