Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Title over object won't go away

Isis Kukulcan
Registered User
Join date: 24 Feb 2006
Posts: 18
08-07-2008 09:32
I write a simple title script and added it to an object. I changed my mind and removed the script. The title still sits over the object. How do I get rid of it?
Nissa Rayna
I play with Prims
Join date: 3 Jan 2008
Posts: 284
08-07-2008 09:39
use a script called Stop it. it removes any after effects of a removed script, thi s is one i use all the time

just copy and paste this into a new script

//Script to clear text, animation, and particles from a prim.
//by Robin Sojourner

// When you remove the scripts for effects, such as floating text, texture animation, or particles, from a prim it doesn't stop the effect.

// To do that, you need to reset it, which you can do by changing the code, or by using another script - this one!

// Just drop this script into a scriptless prim that has lingering effets you don't want, click Reset, and they will all stop. Remove this script, and they will stay stopped.

//If you only want to clear some of these effects, just type '//' in front of the line for the effect you want to KEEP. This turns the command into a comment, which will be ignored, and is referred to as "commenting out" the line.

// To keep floating text, comment out 11SetText
// To keep animatied textures, comment out llSetTextureAnim
// To keep particles, comment out llParticleSystem




default
{
state_entry()
{
llSetText("", <1,1,1>, 1.5);
llSetTextureAnim(FALSE, ALL_SIDES,0,0,0.0, 1,0.3);
llParticleSystem([]);
}
}
_____________________
You can see some of my Designs Here:
http://xstreetsl.com/modules.php?name=Marketplace&MerchantID=121926
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
08-23-2008 14:43
The title will not go away because it is saved in the prim's state. If you take the object back into your inventory and then rez it again it should work fine. You could also make a copy of the object by holding down SHIFT and moving it and that will also work.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
08-23-2008 15:19
I think, Cypher, if you test your advice about taking the prim back into your inventory you will find you are mistaken. Once you've used llSetText to set text, it stays set until you do something to change it, same as llSetColor. And even if you weren't, taking something back into your inventory and re-rezzing it doesn't do anything to a prim other than change its uuid unless there's something in the script's on_rez event that tells it to.

You are right in saying that if you make a copy using drag-copy, the copy won't have the hover text, but the original still does.
Mistoffelees66 Fimicoloud
Registered User
Join date: 8 May 2007
Posts: 4
08-24-2008 05:28
From: Innula Zenovka
I think, Cypher, if you test your advice about taking the prim back into your inventory you will find you are mistaken. Once you've used llSetText to set text, it stays set until you do something to change it, same as llSetColor. And even if you weren't, taking something back into your inventory and re-rezzing it doesn't do anything to a prim other than change its uuid unless there's something in the script's on_rez event that tells it to.

You are right in saying that if you make a copy using drag-copy, the copy won't have the hover text, but the original still does.

Yep, Innula is correct, Cypher.

Thanks for the script Innula.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
08-24-2008 06:18
From: Mistoffelees66 Fimicoloud
Yep, Innula is correct, Cypher.

Thanks for the script Innula.


Not my script; it was Nissa's.

Here, though, is a similar one I use, slightly adapted from one by Ronnie Theas, that removes everything that might be hanging around in the prim and then deletes itself from the the prim's inventory (comment out the appropriate line for anything you want to keep)
CODE
//Ronnie Theas's Prim Cleaner
// Copyright 2008
//

// This script resets all the persistent properties of a prim, such as floating text, particles...etc
// that remain even after the script that created them is deleted. It then deletes itself.

default
{
state_entry()
{
llSetSitText( "" );
llSetTouchText( "" );
llParticleSystem( [ ] );
llSetText( "", ZERO_VECTOR, 1.0 );
llTargetOmega( ZERO_VECTOR, 0, 0 );
llSitTarget( ZERO_VECTOR, ZERO_ROTATION );
llSetTextureAnim( FALSE , ALL_SIDES, 1, 1, 0, 0, 0.0 );
llStopSound();
llRemoveInventory(llGetScriptName());
}
}
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
08-24-2008 09:05
this is my favorite one here. the script scrubber. drop it into the prim, click the prim, a dialog comes up and you can choose what you need to clear. click it again and then clicking destruct will remove the script scrubber. no needing to comment out things you don't want to change

/54/f5/243995/1.html