Spline data type (CUSTOMDATATYPE_SPLINE) for the SplineCustomGui GUI
This type is called by value.
Parameters: | v (SplineData) – Source spline data for copy constructor. |
---|---|
Return type: | SplineData |
Returns: | The spline data instance. |
Selects all points.
Flips the spline.
Mirrors the spline.
Set the tension.
Parameters: | r (float) – The tension |
---|
Gets the tension.
Return type: | float |
---|---|
Returns: |
Tension.
Warning This method is only available in R12 and always returns 0.0 in R13. |
Makes all Y coordinates less than or equal to 1.
Makes all Y coordinates greater than or equal to 0.
New in version R13.029.
Sets the tangents of selected knots to zero.
Parameters: |
|
---|---|
Return type: |
bool |
Returns: |
True if successful, otherwise False. |
New in version R13.029.
Sets the knot flag for selected knots.
Parameters: |
flag (int) –
A combination of these flags:
|
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | bool | ||||||||||||||
Returns: | True if successful, otherwise False. |
Deletes all points.
New in version R13.029.
Makes an uninitialized spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes a linear spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes a linear bezier spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes a square spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes a cubic spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes a root spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes an inverse spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes a sinus spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes an absolute cosinus spline with lPoints number of points.
Parameters: | lPoints (int) – Number of points, or -1 to get the default value. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False. |
New in version R13.029.
Makes a user spline from str with lPoints number of points.
Parameters: |
|
---|---|
Return type: |
bool |
Returns: |
True if successful, otherwise False. |
Deletes a knot.
Parameters: | 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.
Return type: | list of dict{vPos: Vector, lFlagsSettings: int, bSelect: bool, vTangentLeft: Vector, vTangentRight: Vector, interpol: bool} |
---|---|
Returns: | A list of dictionaries with information about the knot. |
New in version R13.029.
Sets knot properties.
Parameters: |
|
||||
---|---|---|---|---|---|
Raises RangeError: | |||||
If knot index is out of range. |
Gets a point from its X coordinate.
Parameters: | 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:
def PrintRange(sd):
sdrange = sd.GetRange()
if not range: return
print sdrange["xmin"], sdrange["xmax"], sdrange["xstep"], sdrange["ymin"], sdrange["ymax"], sdrange["ystep"]
Return type: | dict{xmin: float, xmax: float, xstep: float, ymin: float, ymax: float, ystep: float} |
---|---|
Returns: | Returns the range or None. |
Sort the knots.
Return type: | int |
---|---|
Returns: | The new index of the active knot. |
Set the range of the spline.
Parameters: |
|
---|
New in version R13.029.
Adapts the internal 0-1 range of the old spline GUI to the range set by xmin, xmax, ymin and ymax.
Parameters: |
|
---|