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 SPLINECONTROL_ALLOW_HORIZ_SCALE_MOVE bool Allows horizontal scale and move. SPLINECONTROL_ALLOW_VERT_SCALE_MOVE bool Allows vertical scale and move. SPLINECONTROL_OPTIMAL bool Uses optimal area. SPLINECONTROL_OPTIMAL_X_MIN float Optimal X minimum. SPLINECONTROL_OPTIMAL_Y_MIN float Optimal Y minimum. SPLINECONTROL_OPTIMAL_X_MAX float Optimal X maximum. SPLINECONTROL_OPTIMAL_Y_MAX float Optimal Y maximum. SPLINECONTROL_SQUARE bool Area is square. SPLINECONTROL_CUSTOMCOLOR_SET bool The custom color specified in SPLINECONTROL_CUSTOMCOLOR_COL is used for the curves. SPLINECONTROL_CUSTOMCOLOR_COL vector The custom color. SPLINECONTROL_NO_FLOATING_WINDOW bool No entry in the menu to open the spline in a floating window. SPLINECONTROL_NO_PRESETS bool No load/save preset buttons.
This is how it looks:
c4d.gui.
SplineCustomGui
¶
SplineCustomGui.SetGridLineCountH()
SplineCustomGui.SetGridLineCountV()
SplineCustomGui.GetGridLineCountH()
SplineCustomGui.GetGridLineCountV()
c4d.gui.BaseCustomGui
SplineCustomGui.
SetSpline
(
data
)
¶
Sets the data.
Parameters: | data ( c4d.SplineData ) – The new spline data. |
---|---|
Return type: | bool |
Returns: | True if successful, otherwise False . |
SplineCustomGui.
GetSplineData
(
)
¶
Gets the data.
Return type: | c4d.SplineData |
---|---|
Returns: | The spline data. |
SplineCustomGui.
SetGridLineCountH
(
l
)
¶
Set the horizontal grid line count.
Parameters: | l ( int ) – The new count. |
---|
SplineCustomGui.
SetGridLineCountV
(
l
)
¶
Set the vertical grid line count.
Parameters: | l ( int ) – The new count. |
---|
SplineCustomGui.
GetGridLineCountH
(
)
¶
Get the horizontal grid line count.
Return type: | int |
---|---|
Returns: | The count. |
SplineCustomGui.
GetGridLineCountV
(
)
¶
Get the vertical grid line count.
Return type: | int |
---|---|
Returns: | The count. |
SplineCustomGui.
GetScreenPosition
(
v
)
¶
Get the screen position for a spline value.
Parameters: | v ( c4d.Vector ) – The spline value. |
---|---|
Return type: | tuple(float, float) |
Returns: | The screen X and Y positions. |
SplineCustomGui.
GetValue
(
x
,
y
)
¶
New in version R14.014.
Get the spline value for a screen position.
Parameters: |
|
---|---|
Return type: | |
Returns: |
The spline value. |
SplineCustomGui.
SetCustomColor
(
[bSet=False][, col=Vector(0.0, 0.0, 0.0)]
)
¶
New in version R14.014.
Set a custom color for the curve.
Parameters: |
|
---|