c4d.gui.SplineCustomGui

Spline GUI (CUSTOMGUI_SPLINE) for the SplineData data type. These are the settings:

SPLINECONTROL_GRID_H bool Shows the horizontal grid
SPLINECONTROL_GRID_V bool Shows the vertical grid
SPLINECONTROL_VALUE_EDIT_H bool Show X edit box
SPLINECONTROL_VALUE_EDIT_V bool Show Y edit box
SPLINECONTROL_VALUE_LABELS_H bool Show labels on the X axis
SPLINECONTROL_VALUE_LABELS_V bool Show labels on the Y axis
SPLINECONTROL_X_MIN float Min. X
SPLINECONTROL_X_MAX float Max. X
SPLINECONTROL_X_STEPS float X steps (for the edit box)
SPLINECONTROL_Y_MIN float Min. Y
SPLINECONTROL_Y_MAX float Max. Y
SPLINECONTROL_Y_STEPS float Y steps (for the edit box)
SPLINECONTROL_PRESET_BTN bool Has preset button
SPLINECONTROL_ROUND_SLIDER bool Has tension slider
SPLINECONTROL_GRIDLINES_H int Number of horizontal grid lines
SPLINECONTROL_GRIDLINES_V int Number of vertical grid lines
SPLINECONTROL_MINSIZE_H int Minimal horizontal size
SPLINECONTROL_MINSIZE_V int Minimal vertical size
SPLINECONTROL_X_MIN_TEXT str Xmin label text
SPLINECONTROL_X_MAX_TEXT str Xmax label text
SPLINECONTROL_Y_MIN_TEXT str Xmin label text
SPLINECONTROL_Y_MAX_TEXT str Xmax label text
SPLINECONTROL_X_TEXT str X label text
SPLINECONTROL_Y_TEXT str Y label text
SPLINECONTROL_NEW_NO_HORIZ bool New knots can’t be moved horizontally
SPLINECONTROL_NEW_NO_VERT bool New knots can’t be moved vertically
SPLINECONTROL_HIDE_GRID_H bool Hide the horizontal grid
SPLINECONTROL_HIDE_GRID_V bool Hide the vertical grid
SPLINECONTROL_HIDE_PRESET_BTN bool Hide preset button
SPLINECONTROL_HIDE_ROUND_SLIDER bool Hide tension slider
SPLINECONTROL_HIDE_VALUE_EDIT_H bool Hide X edit box
SPLINECONTROL_HIDE_VALUE_EDIT_V bool Hide Y edit box
SPLINECONTROL_HIDE_VALUE_LABELS_H bool Hide labels on the X axis
SPLINECONTROL_HIDE_VALUE_LABELS_V bool Hide labels on the Y axis

This is how it looks:

Inheritance

Members

SplineCustomGui.SetSpline(data)

Sets the data.

Parameters: data (SplineData) – The new spline data.
Return type: bool
Returns: True if successful, otherwise False.
SplineCustomGui.GetSplineData()

Gets the data.

Return type: SplineData
Returns: The spline data.
SplineCustomGui.SetGridLineCountH(l)

New in version R13.029.

Set the horizontal grid line count.

Parameters: l (int) – The new count.
SplineCustomGui.SetGridLineCountV(l)

New in version R13.029.

Set the vertical grid line count.

Parameters: l (int) – The new count.
SplineCustomGui.GetGridLineCountH()

New in version R13.029.

Get the horizontal grid line count.

Return type: int
Returns: The count.
SplineCustomGui.GetGridLineCountV()

New in version R13.029.

Get the vertical grid line count.

Return type: int
Returns: The count.
SplineCustomGui.GetScreenPosition(v)

New in version R13.029.

Get the screen position for a spline value.

Parameters: v (Vector) – The spline value.
Return type: tuple(float, float)
Returns: The screen X and Y positions.

Table Of Contents