c4d.modules.hair.HairLibrary
¶
Hair library class.
c4d.modules.hair.
HairLibrary
¶
HairLibrary.
SetMode
(
doc
,
mode
)
¶
Set hair mode.
Parameters: |
|
---|
HairLibrary.
GetMode
(
doc
)
¶
Get hair mode.
Parameters: | doc ( c4d.documents.BaseDocument ) – Document. | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | int | ||||||||||||||
Returns: |
Hair mode:
|
HairLibrary.
BlendColors
(
mode
,
colA
,
colB
)
¶
Blend colors.
Parameters: |
|
---|---|
Return type: | |
Returns: |
Resulting color. |
HairLibrary.
MixST
(
s
,
t
,
pa
,
pb
,
pc
,
pd
,
bQuad
)
¶
Mix by the s and t coordinates among pa , pb , pc and pd .
Parameters: |
|
---|---|
Return type: |
tuple(float, float) |
Returns: |
The s and t coordinates. |
HairLibrary.
GetPolyPointST
(
p
,
pa
,
pb
,
pc
,
pd
,
bQuad
)
¶
Calculate the s and t coordinates of the point p in the polygon described by pa , pb , pc and pd .
Parameters: |
|
---|---|
Return type: |
tuple(float, float) |
Returns: |
The s and t coordinates. |
HairLibrary.
GetHairVersion
(
)
¶
Get the hair version.
Return type: | int |
---|---|
Returns: | Hair version number. |
Enter search terms or a module, class or function name.