BezTriple lacking information
Closed, ArchivedPublic

Description

Group: V 2.32 release
Resolution: Approved
Category: Python

I'm not sure this is really a bug but the interface for
accessing IPO-curves seems broken or incomplete. The
following code snippet is what appears natural to the
users of blenders python-api:

Ipo=object.getIpo()
curve=Ipo.getCurve(curveName)
points=curve.getPoints()

for bezTriple in points:
...

But the bezTriple only holds a list of two float values
namely the x- and y-coordinate of the knot-points of
the ipo-curve, the control-points are nowhere to be
found. The interface says that getPoints should be used
on the bezTriple but that is always a list of 2 floats.

Using Ipo.getBezTriple(curveID, knotPoint) gives a list
of 9 floats which is what you want from the bezTriples.

Also the member bezierPoints of BezTriple is not
accessible but using print repr(bezTriple) all the
information you want is there so it's just something
with the interface.

This has been the case of Blender 2.28-2.32. Now the
type(bezTriple) works correctly though (that was
another bug but that one is fixed/closed).

Anders Nilsson (breakin) set Type to Bug.Via Old WorldApr 2 2004, 1:46 PM
Stephen Swaney (stiv) closed this task as "Archived".Via Old WorldApr 6 2004, 11:06 PM
Nobody (None) added a comment.Via Old WorldApr 2 2004, 1:46 PM

This task was automatically closed as archived as part of migration, because the project or tracker this task belonged to is no longer active.

Add Comment