Jump to content

Calc Pending Rez Offset


Worn
 Share

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

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

Recommended Posts

I want to calculate a rez offset by the Z size of the object to be rezzed. To do this I have to obtain the object's size before it is actually rezzed. Is there any function that will provide object data before it arrives in world? Rezzing then moving would ruin the effect.

Link to comment
Share on other sites

No.  An object doesn't exist until it i rezzed, so there's no way to measuire it.  You have to know what the object is in order to rez it, though, so why not measure it before you put it in the rezzer?  Then calculate the offset and store it in the script.

Link to comment
Share on other sites

Which is exactly what will have to be done, but kinda sucks the flexibility right out of the script, huh? How about we write something and then any inventory put in to rez works because the computer should calculate these things for us and make our lives easy? Seems like not so much to ask.

Thanks for verifying I'm not missing a trick. Just wanted to make sure.

Link to comment
Share on other sites

The challenge in all of this is the concept of "inventory". We're inclined to think of an object's inventory as a sort of steamer trunk or coat closet into which we put things for storage, because that's exactly what we would do in RL.  However, an object's inventory is more like a table of contents or a bill of lading. All it contains is a unique marker that refers to a description held on Linden Lab servers. In the case of an object, that marker does not even include a UUID, since each instance of an object in world is a new entity. We have LSL tools for retrieving the description from the servers and creating a new instance, but no way to access the description itself to find out what is "in" it until we have actually created that instance. We have very limited access to the LL servers.

Link to comment
Share on other sites

Wishing for new functions will not help you. You need to see whats possible with the options you have.

Fully automatic is: rez and object-move - if you dont want it you have to prepare the rezzings.

Rez your object on a platform and add a helper script. This helper script will determine the offset to the platform and add it to the name of the object. Example: 3.54~objects name (for a simple z-offset)
Then the script will delete itself. Now you can take the object and put it in the rezzer. The rezzer can see the objects name so it can extract the offset and rez with offset. Still some extra work but once you made the helper script you can add many objects in a short time to the rezzer.

Another way is to hide the rez. Rez the object under the floor or above the ceiling. Then move it to the correct position. The move will make it appear nearly instantly at the endpoint.

Many SL scripts use dirty tricks :D use your phantasy.

Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...