Worn Posted December 1, 2016 Posted December 1, 2016 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.
Rolig Loon Posted December 1, 2016 Posted December 1, 2016 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.
Worn Posted December 3, 2016 Author Posted December 3, 2016 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.
Rolig Loon Posted December 3, 2016 Posted December 3, 2016 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.
Nova Convair Posted December 4, 2016 Posted December 4, 2016 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 use your phantasy.
Recommended Posts
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