| Home | Trees | Index | Help |
|
|---|
| Module Lattice :: Class Lattice |
|
| Method Summary | |
|---|---|
Applies the current Lattice deformation to any child objects that have this Lattice as the parent. | |
| list of strings |
Returns the deformation key types for the x, y, and z dimensions of the Lattice. |
| string |
Returns the current Lattice mode |
| string |
Get the name of this Lattice datablock. |
| list of ints |
Gets the number of 'walls' or partitions that the Lattice has in the x, y, and z dimensions. |
| list of floats |
Returns the coordinates of a point in the Lattice by index. |
Inserts the current state of the Lattice as a new absolute keyframe | |
Sets the deformation key types for the x, y, and z dimensions of the Lattice. | |
Sets the current Lattice mode There are two Lattice modes possible: | |
Set the name of this Lattice datablock. | |
Set the number of 'walls' or partitions that the Lattice will be created with in the x, y, and z dimensions. | |
Sets the coordinates of a point in the Lattice by index. | |
| Class Variable Summary | |
|---|---|
depth: The number of z dimension partitions. | |
depthType: The z dimension key type. | |
height: The number of y dimension partitions. | |
heightType: The y dimension key type. | |
latSize: The number of points in this Lattice. | |
mode: The current mode of the Lattice. | |
name: The Lattice name. | |
width: The number of x dimension partitions. | |
widthType: The x dimension key type. | |
| Method Details |
|---|
applyDeform()Applies the current Lattice deformation to any child objects that have this Lattice as the parent. |
getKeyTypes()Returns the deformation key types for the x, y, and z dimensions of the Lattice.
|
getMode()Returns the current Lattice mode
|
getName()Get the name of this Lattice datablock.
|
getPartitions()Gets the number of 'walls' or partitions that the Lattice has in the x, y, and z dimensions.
|
getPoint(index)Returns the coordinates of a point in the Lattice by index.
|
insertKey(frame)Inserts the current state of the Lattice as a new absolute keyframe Example:
for z in range(5):
for y in range(125):
vec = myLat.getPoint(y)
co1 = vec[0] + vec[2]
co2 = vec[1] - vec[2]
co3 = vec[2] + vec[1]
myLat.setPoint(y,[co1,co2,co3])
w = (z + 1) * 10
myLat.insertKey(w)
myLat.applyDeform()
|
setKeyTypes(xType, yType, zType)Sets the deformation key types for the x, y, and z dimensions of the Lattice. There are three key types possible:
|
setMode(modeType)Sets the current Lattice mode There are two Lattice modes possible:
|
setName(name)Set the name of this Lattice datablock.
|
setPartitions(x, y, z)Set the number of 'walls' or partitions that the Lattice will be created with in the x, y, and z dimensions.
|
setPoint(index, position)Sets the coordinates of a point in the Lattice by index.
|
| Class Variable Details |
|---|
depthThe number of z dimension partitions. |
depthTypeThe z dimension key type. |
heightThe number of y dimension partitions. |
heightTypeThe y dimension key type. |
latSizeThe number of points in this Lattice. |
modeThe current mode of the Lattice. |
nameThe Lattice name. |
widthThe number of x dimension partitions. |
widthTypeThe x dimension key type. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Mon Feb 2 18:51:07 2004 | http://epydoc.sf.net |