Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sculptie Animated SCript

Flame Oh
Registered User
Join date: 15 Feb 2007
Posts: 9
12-30-2007 07:13
Been working with sculpties and have seen many moving and animated ones..
I know its in scripting not animations so was wondering if anyone would be so kind as to share the script and brief explanation for this!
Thanx in advance!!
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
12-30-2007 08:02
I think you'll have to be more specific than that. llSetPos and llMoveToTarget are the main functions for moving, but since there are so many ways to decide where to move to, there's no such thing as a single script that does all the movement you might want. Likewise, animation can be simulated in a number of ways, depending upon what you want.
Flame Oh
Registered User
Join date: 15 Feb 2007
Posts: 9
12-30-2007 08:21
I mean animated Sculpties
I assume they use a series of .bmps imported and installed to make the sculpty animate..
thanx!
Ollj Oh
Registered User
Join date: 28 Aug 2007
Posts: 522
12-30-2007 08:42
//this script changes its prims SculptMapShape every 15 seconds to the next texture of the prim content, using llSetPrimitiveParams() , llGetInventoryName() and a timed cycle:
//original touch script courtesy of Fractal Mandala
//modified by YadNi Monde to make it Automatic

integer numsculpts;
integer sculptindex = -1;

default
{
state_entry()
{
numsculpts = llGetInventoryNumber(INVENTORY_TEXTURE);
llSetTimerEvent( 15 );
}

timer()
{
sculptindex++;
if(sculptindex >= numsculpts) {
sculptindex = 0;
}

llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SCULPT, llGetInventoryName(INVENTORY_TEXTURE, sculptindex), PRIM_SCULPT_TYPE_SPHERE]);
}
}
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
12-30-2007 08:46
Guess the easiest way would be to change the texture via llSetTexture() and thus apply differents sculptie-textures to make it seem animated. This wouldn't look breathtaking though, since llSetTexture() has a built-in delay of 0.2 seconds. So animations done that way would look like still-images :)
I've seen a rabbit that's done like that, but to be honest, the animation doesn't look _that_ good...

What comes to my mind right now: What about using llSetTextureAnim()? Would this work on a sculptie? So one would have to make a grid out of different sculptie-textures and then play them using llSetTextureAnim() - might speed up the whole thing...
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
Puppeteer
12-30-2007 10:20
XD Fusion, Schell (219, 143, 250)

This is where I got the Puppeteer scripts, it's a prim animation system. I don't know if it works with sculpties, but I don't see any reason why it wouldn't.
Flame Oh
Registered User
Join date: 15 Feb 2007
Posts: 9
12-31-2007 04:34
Ollj Oh thats PERFECT!!!!
Thank you so much for that!! I notice also that the timer is adjustable making it animate at any rate you want!!
THANX!!

Haruki thank you so much for your input!

ElQ I have puppeteer!What a great program but waht i was looking for was making sculpties animate by them actually changing shapes!
Thank you tho!
calamity Boram
Registered User
Join date: 7 Sep 2007
Posts: 1
08-19-2009 11:49
Yes J have test the script and it is good :)
But if I want a stop time for me animation ? Wath the good fonction ?
(sorry for me inglish, but I am french :)
Vance Adder
Registered User
Join date: 29 Jan 2009
Posts: 402
08-19-2009 12:09
From: Haruki Watanabe

What comes to my mind right now: What about using llSetTextureAnim()? Would this work on a sculptie? So one would have to make a grid out of different sculptie-textures and then play them using llSetTextureAnim() - might speed up the whole thing...


Looking at the wiki, I don't think this is possible. Would be neat if you could do something like that though!
Hikaru Yamamoto
Oldbie
Join date: 10 Mar 2003
Posts: 895
09-01-2009 19:40
Hey guys I succeeded in making a really fluid animated sculpty and I need some new ideas of what to make. I already made some flapping wings. Could you guys help me out?
_____________________
http://slurl.com/secondlife/Europa/152/33/69/

Its hippos all the way down...