Return to index

NAME

channel - create a new animation channel

SYNOPSIS

channel obj type curve coordinate (pcurve)*

where type = {XTranslate | YTranslate | ZTranslate | XRotate | YRotate | ZRotate | XScale | YScale | ZScale}

coordinate = {[X] | [Y] | [Z]}

DESCRIPTION

Create a new animation channel. If there isn't curve into the channel the coordinate lose its sense. In this case it is used because the parser need it.

EXAMPLE


# Create the control vertices
cv cv0 = 69.9956 0 -12.9901 1
cv cv1 = 67.5297 0 35.6461 1
cv cv2 = 32.4832 0 20.9052 1
cv cv3 = 0.969878 0 38.8593 1
cv cv4 = -21.1199 0 41.9098 1
cv cv5 = -6.58377 0 19.0752 1
cv cv6 = -14.1665 0 0.532005 1
cv cv7 = -24.1607 0 0.391226 1
cv cv8 = -33.6289 0 -0.536791 1
cv cv9 = -41.8302 0 1.59241 1
cv cv10 = -53.5961 0 8.30557 1
cv cv11 = -60.7048 0 16.8607 1
cv cv12 = -64.1654 0 25.6718 1
cv cv13 = -74.4964 0 9.92957 1
cv cv14 = -72.5421 0 1.18789 1
cv cv15 = -69.1736 0 -5.96318 1
cv cv16 = -59.0258 0 -8.2178 1

# Create a NURBS curve
curve curveShape = 
deg 3
knt 0 0 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 14 14 14
cvs cv0 cv1 cv2 cv3 cv4 cv5 cv6 cv7 cv8 cv9 cv10 cv11 cv12 cv13 cv14 cv15 cv16 

# Create a parametric vertices
pv pv0_ = 0 0 TAN_SMOOTH 2.5 1 TAN_SMOOTH 2.5 1
pv pv1_ = 60 1 TAN_SMOOTH 2.5 1 TAN_SMOOTH 2.5 1

# Create a hermite curve
pcurve motionPath = 
 in PRE_CONSTANT
 out POST_CONSTANT
 cvs pv0_ pv1_ 

# Define the animation channels to translate the object "airplane". 
channel airplane XTranslate curveShape [X] motionPath 
channel airplane YTranslate curveShape [Y] motionPath
channel airplane ZTranslate curveShape [Z] motionPath

SEE ALSO

pcurve, curve, pv, cv