Dear Community,
I am displaying a Spline using SplineCustomGui
. I am able to display the spline but the custom attributes are missing. Is there a way to do this without a .res file or can someone tell my why it doesn't work?
Several people already posted (or this thread) that the provided Spline Settings don't work.
My spline code (called in the CreateLayout
method):
bc = c4d.BaseContainer()
bc[c4d.SPLINECONTROL_GRID_H] = True
bc[c4d.SPLINECONTROL_GRID_V] = True
bc[c4d.SPLINECONTROL_VALUE_EDIT_H] = True
bc[c4d.SPLINECONTROL_VALUE_EDIT_V] = True
bc[c4d.SPLINECONTROL_X_MIN] = 0
bc[c4d.SPLINECONTROL_X_MAX] = 1
bc[c4d.SPLINECONTROL_X_STEPS] = 0.1
bc[c4d.SPLINECONTROL_Y_MIN] = 0
bc[c4d.SPLINECONTROL_Y_MAX] = 1
bc[c4d.SPLINECONTROL_Y_STEPS] = 0.1
bc[c4d.SPLINECONTROL_NO_FLOATING_WINDOW] = False
bc[c4d.SPLINECONTROL_NO_PRESETS] = False
spline_gui = self.AddCustomGui(
id=spline_id,
pluginid=c4d.CUSTOMGUI_SPLINE,
name="Spline",
flags=c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT,
minw=600,
minh=200,
customdata=bc
)
My current spline looks like this:
This is what it should look like:
Am I doing this wrong? I open the dialog in a plugin but it doesn't work in a script as well.
Thanks for your help.
-robkom