Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script that will find invisible objects

Skyler Jensen
Junior Member
Join date: 21 Jun 2004
Posts: 1
09-22-2004 11:55
I am basically looking for a script that will ping all objects, and get their names and locations. This way I can find out if anyone has dropped invisible objects on My property in hopes of lagging Me out. Is this possible? If so, send Me and IM in game and I'd love to buy the script. Thanks
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
09-22-2004 12:38
llSensor can only return 16 results at a time, and successive calls are not going to be unique.

Your best bet is to set your land to auto-return if that's at all possible for you. If you need to allow some people to place objects there, form a group for them. Tag the land with it and have them tag all their objects with it as well. Then the auto-return only gets rid of other people's objects.

If you know of a specific object name that is hidden and causing trouble, like a dropped bottle spewing animation error messages, then you can use the name (listed in the chat log) to find it via script.

I make a big, red, transparent sphere and give it a llSensorRepeat with max range (96) and a 5 second timer. In the sensor() event handler, I llSetPos( llDetectedPos(0) ) wich will move the sphere closer and closer to the offending object every 5 seconds. When it is still, look in the center for the object.

And to just look for invisible things, in your View menu, there's a Hilight Alpha option, or something like that, which will tint all transparent textures with a red haze. Also in the view menu is Show Object Beacons, though I've had mixed results with this. Often it does not find every object.

As a final way to search for lost objects on your property, in the Debug menu under Render is an option to Hide Selected. Turn that on, go into edit mode, and start shift-clicking objects like the floor and walls of your house. As you select them, they vanish (they are still there, and you can still see their outlines) so you can see under the floorboards and through your walls. Very handy. But be warned, even though you can't see them, you are still selecting things. If you accidently move something, you could tear your house it two. Control-Z undo is your friend.

Hope that helps.
_____________________
~ Tiger Crossing
~ (Nonsanity)