Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script removed but still working

Sue Saintlouis
Registered User
Join date: 8 Dec 2006
Posts: 420
11-18-2007 22:40
I put an ANIM script on my dance floor, to animate the texture. I then removed the script, but the texture is still animated. How do I stop it?
TIA!
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
11-18-2007 22:49
/54/0b/90333/1.html
Sue Saintlouis
Registered User
Join date: 8 Dec 2006
Posts: 420
11-18-2007 23:01
Thank you Osgeld, but I'm still unclear on how to stop the anim texture. The post you refferred me to, talks about removing the floating text and how other scripts continue to affect the prim. It's good to know for future reference, but I'm not a scripter. How do i use that for the anim script?
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
11-19-2007 00:14
Animated textures, like particles, are a prim property. Thus, once set, you can remove the script and they will persist.

You will need to stop the animation via LSL script.
Johnnie Carling
Registered User
Join date: 17 Aug 2007
Posts: 174
11-19-2007 01:34
Put this script in your object and reset the scripts.

CODE


default
{
state_entry()
{
llSetTextureAnim(FALSE | SMOOTH | LOOP | ROTATE, ALL_SIDES, 1, 1, 1, TWO_PI, 0.2);
}
}
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-19-2007 03:04
the particle labratory als has a free "scrubber" which will clean out other prim attributes that persist after the original script has set them (actually had to do this on a locked rotation prim... can't imagine why the maker set that)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
11-19-2007 03:08
The neat thing about texture animation is that it persists even if you take the object into your inventory and re-rez. Hence, you can make a texture animated dancefloor (or whatever) and remove the script, and you have a scriptless (talk about low lag!) animated dancefloor (or whatever). To stop a texture animation, simple omit the ANIM_ON constant and it will stop the animation :)
Sue Saintlouis
Registered User
Join date: 8 Dec 2006
Posts: 420
11-20-2007 01:19
Thank you so much :)!
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
11-20-2007 17:35
animation is about half way down

i know its hard to read since LL cant seem to operate a web forum
Dnali Anabuki
Still Crazy
Join date: 17 Oct 2006
Posts: 1,633
11-20-2007 17:52
Also, another neat trick is that if you have an object with floating text and/or texture animation after you delete the script, drag a copy and the copy won't have it.

You have to be sure to delete the script first. Also note that the copy is the one that is left behind and the one you drag is the original so in the case of your dance floor, it would stay in the original position but not have the texture animation.
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
11-20-2007 17:53
More fully-featured scrubber that removes itself when done:

default
{
state_entry()
{
llSetSitText( "" );
llSetTouchText( "" );
llParticleSystem( [ ] );
llSetText( "", ZERO_VECTOR, 1.0 );
llSetTextureAnim( FALSE , ALL_SIDES, 1, 1, 0, 0, 0.0 );
llStopSound();
llOwnerSay("This Prim is Clean... ";);
llRemoveInventory( llGetScriptName() ); // vanish without a trace...
}
}
_____________________
.
:) To contact forum folks, join the inworld group "The Forum Cartel". New residents with questions about SL more than welcome! We has parties!

:) To contact forum scripters, join the inworld group "Scriptoratti" (thanks Void!). New scripter questions welcome!