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
Fullperm is always great ! °* . ﹢ ˖ ✦ ¸ . ﹢ ° ¸. ° ˖ ・ ·̩ 。 ☆ Thx for this gift !
Help us to improve Secondlife - Come and join us ٩(^‿^)۶ :
˖✦> Group: https://world.secondlife.com/group/d681285b-20a0-0e3d-28a7-f52bc3748604
˖✦> Website: https://fullperm.com
Please upvote also here:
˖✦> https://feedback.secondlife.com/web-features/p/improve-marketplace-review-rating-make-it-like-ebay
One Script, No Dicking Around, Free and Open Source
well, you can use the second script to play it etc. i just changed the code to dump my keyframes (it was a short project) so that i could store them in the script itself.
the keyframes are stored in script memory, so any resetting of the script is gonna erase them. remember that!
Stopped Working
It worked great for a couple of times and then it just stopped working.
Thank you very much
Awesome script, works as described.
Thank you very much.
* * * * *
Simple and works
For a starter wanting to animate some objects best place to start to learn is this great item for free open I have used a few things in my time first one I saw for free great job if I want just a quick job this is what you could use its a simple way of doing it I have ones that dose more but as I said can't knock this one at all free guys and actually work friendly to use first time people ho want a go this is it ty to the creator for time and effort you took to make it fun and neet item :-)