3
$\begingroup$

I'm just starting to get familiar with bpy.types and application modules, but I didn't find an answer to this:

Concerning A Bezier Curve with multiple splines, is there a python way in EDIT mode to know on which spline I am working on (activated in the viewport) except iterating every single bezier_point inside ?

Thanks in advance, jimflim

$\endgroup$
5
$\begingroup$

You can access this from the spline collections.

obj = bpy.context.object
curve = obj.data
spline = curve.splines.active

http://www.blender.org/documentation/blender_python_api_2_73a_release/bpy.types.CurveSplines.html#bpy.types.CurveSplines.active

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.