Posted: 3rd Jan 2006 22:22
load object file$, objnr
is used for loading a non existing object. If the object contains animation, the animation will be loaded. If the objnr is already taken, the program will return an error.
append object file$, objnr, startFrame
is for adding an animation sequence to the object objnr. It doesn't HAVE to be the same object, but it is recommendable. (The animation contains frame data for each limb. Which means, you can apply the animation to any object as long as it has the same limb number and hierarchy).
play object objnr[,startframe][,endframe]
This command will play a previously loaded animation sequence of an object. If the object contains no animation information, the program will return an error.
loop object objnr[,startframe][,endframe]
The same as play object, except that it loops itself over and over again.
set object speed objnr, speed
This command sets the speed of an object. The higher speed is, the faster the object will animate.
total object frames( objnr )
returns the number of total keyframes of an object.
object frame( objnr )
returns the current object frame (When playing/looping).
object playing( objnr )
Will return a 1 when the object is playing. Otherwise, a 0 is returned.
object stopped( objnr )
Will return a 1 when the object is not playing. Otherwise, a 0 is returned. Pretty useless command, since the same can be achieved with object playing.
NOTES:
Animation can be stored in a 3ds, DirectX or the Character Shops own format. But, another way of storing animation, is using DBC itself. This feature is not available in DBP anymore.
To animate in DBC you can:
offset limb objnr, limbnr, x, y, z
for offsetin the limb.
rotate limb objnr, limbnr, x, y, z
for rotating the limb.
set object keyframe objnr, keyframe
for storing a keyframe to an object.
DBC will automatically smoothen the animation sequence for you. which means that the object will animate smoothly when you only defined keyframe 0 and 20.
These commands aren't all the commands DBC has for animation!