Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Library: Scrubber

Beezle Warburton
=o.O=
Join date: 10 Nov 2006
Posts: 1,169
03-01-2008 01:26
list buttons =["SitTarget", "SitText", "FloatText", "Particles","TextureAn", "Sound", "TargetOmega", "ALL", "DESTRUCT"];

string menutext = "Select an item to clear, use ALL to Clear all, or DESTRUCT to remove script from prim";

integer handler;

default
{
state_entry()
{
if (handler)
{
llListenRemove(handler);
}
handler =llListen(1,"",llGetOwner(),"";);
}
touch_start(integer num_detected)
{
llDialog(llGetOwner(), menutext, buttons, 1);
}
listen( integer channel, string name, key id, string message )
{
string lowmsg = llToLower(message);
if (lowmsg == "sittarget";)
{
llWhisper(0,"Clearing Sit Position.";);
llSitTarget(ZERO_VECTOR,ZERO_ROTATION);
}
if (lowmsg == "floattext";)
{
llWhisper(0,"Clearing Floating Text.";);
llSetText("", <1,1,1>, 1.5);
}
if (lowmsg == "particles";)
{
llWhisper(0,"Clearing Particles.";);
llParticleSystem([]);
}
if (lowmsg == "texturean";)
{
llWhisper(0,"Clearing Texture Animation.";);
llSetTextureAnim(FALSE, ALL_SIDES,0,0,0.0, 1,0.3);
}
if(lowmsg == "targetomega";)
{
llWhisper(0, "Clearing llTargetOmega().";);
llTargetOmega(ZERO_VECTOR, 0.0, 1.0);
}
if(lowmsg == "sound";)
{
llWhisper(0, "Clearing Sounds.";);
llStopSound();
}
if(lowmsg == "sittext";)
{
llWhisper(0,"Clearing Sit Text.";);
llSetSitText("Sit Here";);
}
if (lowmsg == "all";)
{
llWhisper(0,"Clearing Floating Text.";);
llSetText("", <1,1,1>, 1.5);
llSetSitText("Sit Here";);
llWhisper(0,"Clearing Texture Animation.";);
llSetTextureAnim(FALSE, ALL_SIDES,0,0,0.0, 1,0.3);
llWhisper(0,"Clearing Particles.";);
llParticleSystem([]);
llWhisper(0,"Clearing Sit Position.";);
llSitTarget(ZERO_VECTOR,ZERO_ROTATION);
llWhisper(0, "Clearing llTargetOmega().";);
llTargetOmega(ZERO_VECTOR, 0.0, 1.0);
llStopSound();
}
if (lowmsg == "destruct";)
{
llWhisper(0,"Removing script from prim in 0.2 seconds";);
llSleep(0.2);
llRemoveInventory(llGetScriptName());
}
}
}
_____________________
Though this be madness, yet there is method in't.
-- William Shakespeare

Warburton's Whimsies:
In SL
Apez.biz
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Library bump
03-12-2008 19:35
:)
_____________________
i've got nothing. ;)
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-12-2008 21:41
there's a few missing... like statuses and locked axis, and I'm not sure stop sound will clear a collision sound
_____________________
|
| . "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...
| -
Beezle Warburton
=o.O=
Join date: 10 Nov 2006
Posts: 1,169
03-14-2008 04:34
From: Void Singer
there's a few missing... like statuses and locked axis, and I'm not sure stop sound will clear a collision sound


Eh, I just added the ones I most commonly need.

The stop sound is for looped sounds.
_____________________
Though this be madness, yet there is method in't.
-- William Shakespeare

Warburton's Whimsies:
In SL
Apez.biz
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-14-2008 16:11
only noted for completeness... I had a problem a bit back with a set collision sound in my glasses, when I turned sound beacons on I saw something following my head and didn't realize the source at first, and locked axis can drive you insane if you don't know about them... Ture they're obscure and hardly used, but can be quite frustrating to find info on them.
_____________________
|
| . "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...
| -
Ferris Greymoon
Registered User
Join date: 27 Sep 2009
Posts: 1
10-07-2009 07:56
What does this actually do?

I found this while looking for a script that clears cache and forces a redraw of the world. (I know it exists, because there are no-mod objects I've found that contain it!)
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
10-07-2009 08:50
From: Ferris Greymoon
What does this actually do?

I found this while looking for a script that clears cache and forces a redraw of the world. (I know it exists, because there are no-mod objects I've found that contain it!)


It clears or resets the properties of a prim that were set by another script. Very useful for getting rid of errant hovertext, particles, texture animations, etc. etc. etc.
_____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
10-07-2009 08:58
It removes some persistent prim properties (particles, hovertext, texture animation, etc) that can only be set by script and which -- confusingly until you realise they're just like color or shape -- stay that way after you've removed the script that set them and can only be removed by another script call.

There's a much more thorough version at /54/97/331118/1.html

I think you must be looking for a de-ruther, which were recently discussed at /54/2c/343344/1.html, but they don't clear your cache -- I can't see how a script could do that .

eta And I see Cheree beat me to it