Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Get info about other objects

Paladin Pinion
The other one of 10
Join date: 3 Aug 2007
Posts: 191
08-26-2007 11:44
I am renting and need to keep my prim count under a certain level, so I thought I would write a counter to inform me how many prims I've used. I can't find any way to get object information from an object I click on though, without putting a script inside every object I create. What I want to do is click on an object and read the the number of prims it contains. Is this possible?

If not, is there some other way for me to know how many prims I have within a certain radius?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
08-26-2007 12:36
You can always see how many prim are on the lot.

If you want to see how many are in one area such as just your house or store then right click/edit and then draw a box around the area. It wil show how many prim have been picked.

If you want to see how many prim are in one object then just right/click edit.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
08-26-2007 12:44
I don't think it's possible to do exactly what's desired, but one can find out about the total number of prims one owns on a parcel, using llGetParcelPrimOwners() --except that the object containing the script has to be owned by the owner of the parcel; if it's group land, then the scripted object needs to be deeded to the group to keep working when the group "Owners" aren't online. (Not sure whether it works for land owned by an individual while that individual isn't online.)

(Of course, there's the manual approach: the "General" tab of the Editor tells how many prims an individual object contains--or all the objects selected. So if one has "Select Only My Objects" in the Tools menu, zooms back, and just drags a box around everywhere one's stuff might be found, it'll give counts of objects and prims.)
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
08-26-2007 12:50
llGetObjectPrimCount(key id) returns the number of prims for object id. Getting a concise list of objects within a defined area is difficult, because of the 16-object limitation of a sensor. If you just want one object's prim count, and by clicking on the object, I would say try something like firing a projectile at the object that tells you how many prims make up the object it hits.
_____________________
Paladin Pinion
The other one of 10
Join date: 3 Aug 2007
Posts: 191
08-26-2007 14:01
I'm very new, so of course after I posted my question I found out about the manual approach. That will do for now, but my main interest in SL is learning scripting, and I do sort of like the idea of firing a "counting gun" at objects. Might be fun to try and write something like that. Thanks for the idea -- I may be back with more questions about projectiles.

This is a great forum, responses are very fast and helpful. Thanks much.