G General

Open Prim Animator II

Open Prim Animator II
Details
Features
Contents
Reviews

Open Prim Animator II

This is a popular and well used free and open source script that has been around a while. Works great in objects, avatar attachments, and now vehicles too. I have tweaked it slightly just to take advantage of newer LSL commands so that it can be used in vehicles. Otherwise, it is not my code and I resisted the urge to update it beyond that (and can offer no support for its use). I am strict about writing everything I produce commercially myself, but couldn't resist applying the quick fix to this to help out somebody trying to get it to work with a vehicle. In the spirit of free/open source, here it is but please request the original author(s) intentions for the code.

Operation is pretty simple, drop it into your linkset and get the pop-up menu and record your animation frames. It is pretty self explanatory, position your prims relative to the root and record the frame. It stores size, position, and rotations. Using link commands you can recall an individual frame or loop through all the frames.

Trigger its use from your script with these link commands: (without the // of course)

//The message link function is to allow other scripts to control the snapshot playback
//This command will display snapshot #2:
// llMessageLinked(LINK_ROOT, 2, "XDshow", NULL_KEY); llSleep(1.0);
//
//This command will play through all the recorded snapshots in ascending order. The number "1.0" is the delay speed and can be changed.
// llMessageLinked(LINK_ROOT, 0, "XDplay", "1.0");
//
//This command will loop through all the recorded snapshots in ascending order. The number "1.0" is the delay speed and can be changed.
// llMessageLinked(LINK_ROOT, 0, "XDplayLoop", "1.0");
//
//To stop any playing animation use
// llMessageLinked(LINK_ROOT, 0, "XDstop", NULL_KEY);

I threw in with the box an example motion control script issuing these commands that will begin looping the animations once an object (vehicle) begins moving, and stop when it stops.

This script stores all of its data in memory and will not be of much use if your object has many links. (In vehicles this means use a low prim vehicle, and the less links there are the faster all links will update)

good luck,
Karyn Vaher

  • free
  • open source
  • fun for the whole family
Average rating: full star full star full star half star empty star
  • 5 star:
  • 4 star:
  • 3 star:
  • 2 star:
  • 1 star:
dont work
full star empty star empty star empty star empty star Posted February 20, 2015 by Mia Kiko

doesn't work for me unless I got lost reading the book and missed something

Was this review helpful?
Very good
full star full star full star full star full star Posted December 24, 2012 by PetiteAnaiis Eleonara

It works very well thanks.
Only thing I wish I could store the animation when i'm done because now when the script reset I lose the animation.

Was this review helpful?