jit.anim.path
Description
Takes a series of 3D transform points and interpolates between them. See the jit.path object for more information on this interpolation. Each point stores 11 values: a time value, 3 position values, 3 scale values and 4 quaternion rotation values.
Examples

Attributes
autohandles [int]
Enable the calculation of handle values every time the path is edited (default = 1).
automatic [int]
Enable automatic animation notifications from the attached render context (default = 1).
closed [int]
Indicates the path is closed (first and last points are equal).
drawpath [symbol]
Name of a jit.gl.path object used to draw this path.
drawto [symbol]
Assign to the named drawing context, allowing for updates to be received automatically.
duration [float]
Path duration in seconds (default = 0.)
endreport [int]
Enable animation end reporting (default = 0). The symbol loop = 0.
is sent out the dumpout when the animation ends. Only valid ifevalquat [int]
Output evaluated quaternion values (default = 0). Adding orientation values to the path enables.
evalreport [int]
Enable/disable the evaluation parameter reporting out the dumpout (default = 0). The report is a 3 element list where each element represents the current evaluation parameters as 0 to 1, 0 to duration, and 0 to length, in that order.
evalscale [int]
Output evaluated scale values (default = 0). Adding scale values to the path enables.
interpmode [symbol]
Path interpolation method (default = linear).
Possible values:
'linear'
( Linear interpolation )
Linear interpolation
'spline'
( Hermite interpolation )
Linear interpolation
length [float]
Path length (default = 0.)
loop [int]
Path animation loop method (default = 1).
Possible values:
0 = 'off'
1 = 'on'
2 = 'palindrome'
loopreport [int]
Enable animation loop reporting (default = 0). The symbol loop is not 0.
is sent out the dumpout when the animation loops. Only valid ifname [symbol]
Specifies the name of the instance (default = UID).
play [int]
Enable path animation (default = 0).
pointcount [int]
Number of path points (default = 0).
position [3 floats]
Current path position (default = 0. 0. 0.).
quat [4 floats]
Current path quaternion orientation (default = 0. 0. 0. 1.)
rate [float]
Animation rate value (default = 1.)
scale [3 floats]
Current path scale value (default = 1. 1. 1.).
shortestrot [int]
Use the shortest path between rotations (default = 1).
targetname [symbol]
The name of the target object that should be either an OpenGL object, or a jit.anim.node object.
time [float]
Current path time value (default = 0.)
timemode [symbol]
Determine how time values added to the path (default = relative).
Possible values:
'absolute'
( Time value is set to argument )
'relative'
( Time value is set to argument plus previous time value )
Common Box Attributes
Messages
bang
addquat
Arguments
y [float]
z [float]
w [float]
addrotate
Arguments
x [float]
y [float]
z [float]
addrotatexyz
Arguments
y [float]
z [float]
addscale
Arguments
y [float]
z [float]
append
Arguments
x [float]
y [float]
z [float]
scale-x [float]
scale-y [float]
scale-z [float]
quat-x [float]
quat-y [float]
quat-z [float]
quat-w [float]
calchandles
clear
closepath
delete
Arguments
edit
Arguments
time [float]
x [float]
y [float]
z [float]
scale-x [float]
scale-y [float]
scale-z [float]
quat-x [float]
quat-y [float]
quat-z [float]
quat-w [float]
edithandle
Arguments
time [float]
x [float]
y [float]
z [float]
scale-x [float]
scale-y [float]
scale-z [float]
quat-x [float]
quat-y [float]
quat-z [float]
quat-w [float]
eval
Arguments
evallength
Arguments
evaltime
Arguments
gethandle
Arguments
getpoint
Arguments
insert
Arguments
time [float]
x [float]
y [float]
z [float]
scale-x [float]
scale-y [float]
scale-z [float]
quat-x [float]
quat-y [float]
quat-z [float]
quat-w [float]
next
prev
setquat
Arguments
x [float]
y [float]
z [float]
w [float]
setrotate
Arguments
angle [float]
x [float]
y [float]
z [float]
setrotatexyz
Arguments
x [float]
y [float]
z [float]
setscale
Arguments
x [float]
y [float]
z [float]
settime
Arguments
sorttime
start
stop
See Also
Name | Description |
---|---|
jit.anim.drive | |
jit.path | |
jit.gl.path |