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

Class BezTriple


The BezTriple object

This object gives access to generic data from all beztriple objects in Blender. If an attribute is listed as being 'read-only' that means you cannot write to it. Use the set*() methods instead.
Method Summary
list of floats getPoints()
Returns the xy coordinates of the Bezier knot point.
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.
PyNone setPoints(newval)
Sets the point xy coordinates of the Bezier knot point.

Class Variable Summary
  pt : a list of the [x,y] coordinates for knot point of this BezTriple.
  vec : a list of the 3 points [ handle, knot, handle ] that comprise a BezTriple.

Method Details

getPoints()

Returns the xy coordinates of the Bezier knot point.
Returns:
list of the x and y coordinates of the Bezier point.
           (type=list of floats)

getTriple()

Returns the x,y,z coordinates for each of the three points that make up a BezierTriple.

The return list looks like this [ [H1x, H1y, H1z], [Px, Py, Pz], [H2x, H2y, H2z] ] .

Example:
 # where bt is of type BezierTriple
 #  and h1, p, and h2 are lists of 3 floats
 h1, p, h2 = bt.getTriple()
Returns:
handle1, knot, handle2
           (type=list consisting of 3 lists of 3 floats)

setPoints(newval)

Sets the point xy coordinates of the Bezier knot point.
Parameters:
newval - the x and y coordinates of the new Bezier point.
           (type=tuple of 2 floats)
Returns:
PyNone
           (type=PyNone)

Class Variable Details

pt

a list of the [x,y] coordinates for knot point of this BezTriple. read-only.

vec

a list of the 3 points [ handle, knot, handle ] that comprise a BezTriple. See the getTriple() method for an example of the format. read-only.

Generated by Epydoc 2.0 on Wed May 12 22:11:02 2004 http://epydoc.sf.net