Jump to content

Get the dimensions of a new object dragged into a prim's inventory?


Domitan Redenblack
 Share

You are about to reply to a thread that has been inactive for 4669 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

That is not true, llGetBoundingBox works on all kinds of objects: physical, static or even phantom. Only attachments will not return their bounding box, instead, the bounding box of their wearer is returned.

It will return a list with two opposite corners [vector min, vector max] of the bounding box which contains the entire linkset. This bounding box is relative to the root prim.

If you are just dealing with one single, simple (thus not twisted, sliced, sheared etc.) prim, you can use it to get a result equivalent to llGetScale():

// id is the key of the objectlist bb = llGetBoundingBox(id);vector min = llList2Vector(bb, 0);vector max = llList2Vector(bb, 1);vector scale = max - min;


You could combine this with llRezObject and the object_rez event to find out the scale of inventory items.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4669 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...