c4d.UnitScaleData
¶
Unit scale data type (
CUSTOMDATATYPE_UNITSCALE
) for use with the
UnitScaleCustomGui
GUI.
This type is called by value.
c4d.
UnitScaleData
¶
c4d.CustomDataType
UnitScaleData.
__init__
(
[
v
]
)
¶
| Parameters: | v ( c4d.UnitScaleData ) – Copy constructor. |
|---|---|
| Return type: | c4d.UnitScaleData |
| Returns: | The new unit scale data. |
UnitScaleData.
SetUnitScale
(
scale
,
unit
)
¶
Sets the values for the unit scale data type.
| Parameters: |
|
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: |
bool |
||||||||||||||||||||
| Returns: |
True if successful, otherwise False |
UnitScaleData.
GetUnitScale
(
)
¶
Retrieves the values of the unit scale data type:
scale, unit = data.GetUnitScale()
| Return type: | tuple(float, int) |
|---|---|
| Returns: | The scale and unit data. |