String to Spline (cast)
-
I have a string variable whose value is the identifier of a spline:
<c4d.SplineObject object called 'Spline1/Spline' with ID 5101 at 0x000001D672DC4F70>
Given this identifier, how do I get a spline-type variable ?
-
Hey @Kantronin,
Thank you for reaching out to us. Unfortunately, I do not understand your question. The print out you provided,
<c4d.SplineObject object ...
, already indicates that the object is ac4d.SplineObject
. So, I do not really understand what you mean with 'get a spline-type variable'. To get the underlying editable spline object for a spline generator, e.g., get a spline with editable vertices and tangents for a Flower Spline generator, you should use BaseObject.GetRealSpline. But that is only necessary when you have aBaseObject
which under the hood represents a spline. It does not apply when you already have aSplineObject
as you do.Cheers,
Ferdinand