Module BezTriple :: Class BezTriple
[frames] | no frames]

Class BezTriple

The BezTriple object

This object gives access to generic data from all BezTriple objects in Blender.

Instance Methods
list of floats
getPoints()
Returns the x,y coordinates of the Bezier knot point (deprecated).
None
setPoints(newval)
Sets the x,y coordinates of the Bezier knot point (deprecated).
list consisting of 3 lists of 3 floats
getTriple()
Returns the x,y,z coordinates for each of the three points that make up a BezierTriple (deprecated).
Instance Variables
  handleTypes
the types of the point's two handles.
int hide
the visibility status of the knot.
list of two floats pt
the [x,y] coordinates for knot point of this BezTriple.
float radius
the radius of this point (used for tapering bevels)
list of three ints selects
the select status for [handle, knot, handle].
float tilt
the tilt/alpha value for the point
list of points vec
a list of the 3 points [ handle, knot, handle ] that comprise a BezTriple, with each point composed of a list [x,y,z] of floats.
float weight
the weight assigned to the control point.
Method Details

getPoints()

 

Returns the x,y coordinates of the Bezier knot point (deprecated). See the BezTriple.pt attribute.

Returns: list of floats
list of the x and y coordinates of the Bezier point.

setPoints(newval)

 

Sets the x,y coordinates of the Bezier knot point (deprecated). See the BezTriple.pt attribute.

Parameters:
  • newval (tuple of 2 floats) - the x and y coordinates of the new Bezier point.
Returns: None
None

getTriple()

 

Returns the x,y,z coordinates for each of the three points that make up a BezierTriple (deprecated). See the BezTriple.vec attribute.

Returns: list consisting of 3 lists of 3 floats
handle1, knot, handle2

Instance Variable Details

handleTypes

the types of the point's two handles. See HandleTypes for a complete description. @type handleTypes list of two ints

hide

the visibility status of the knot. Note: true/nonzero means not hidden. Note: primarily intended for curves; not a good idea to hide IPO control points.
Type:
int

pt

the [x,y] coordinates for knot point of this BezTriple. After changing coordinates of a Ipo curve, it is advisable to call IpoCurve.recalc() to update the curve.
Type:
list of two floats

selects

the select status for [handle, knot, handle]. True/nonzero if the point is selected.
Type:
list of three ints

vec

a list of the 3 points [ handle, knot, handle ] that comprise a BezTriple, with each point composed of a list [x,y,z] of floats. The list looks like [ [H1x, H1y, H1z], [Px, Py, Pz], [H2x, H2y, H2z] ]. Example:
   # where bt is of type BezTriple
   #  and h1, p, and h2 are lists of 3 floats
   h1, p, h2 = bt.vec
Type:
list of points

weight

the weight assigned to the control point. Useful for softbodies and possibly others.
Type:
float