This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com
A datatype which contains information about spline curves. This type is called by value:
#op is a BaseList2D instance and contains a SplineData element at the given position [SPLINESETTINGS_ID]
#in this case you have to send the object back to apply the change.
sdata = op[SPLINESETTINGS_ID]
sdata.mirror()
op[SPLINESETTINGS_ID] = sdata
| Parameter: | v (SplineData) – Copy constructor. |
|---|---|
| Return type: | SplineData |
| Returns: | The new object or None, if allocation failed. |
Set the tension.
| Parameter: | r (float) – The tension |
|---|
Gets the tension.
| Return type: | float |
|---|---|
| Returns: | Tension. |
Deletes a knot.
| Parameter: | a (int) – The knot index to delete. |
|---|---|
| Return type: | bool |
| Returns: | True if successful, otherwise False. |
Inserts a knot.
| Parameters: |
|
||||
|---|---|---|---|---|---|
| Return type: | int |
||||
| Returns: | Knot index. |
Returns all knots in a list.
| Return type: | list of Vector |
|---|---|
| Returns: | All positions in a list. |
Gets a point from its X coordinate.
| Parameter: | r (float) – The x position |
|---|---|
| Return type: | Vector |
| Returns: | The position |
Returns the count of knots which are selected.
| Return type: | int |
|---|---|
| Returns: | The count |
Gets the knot count.
| Return type: | int |
|---|---|
| Returns: | Knot count. |
Gets the range of the spline.
| Return type: | dict |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns: | The dict members.
|
Sort the knots.
| Return type: | int |
|---|---|
| Returns: | The new index of the active knot. |
Set the range of the spline.
| Parameters: |
|
|---|