Jump to content

Resizer Script


Gabrielle Scorfield
 Share

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

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

Recommended Posts

Hello, I hope someone can help me, I am trying to resize an object with multiple linked objects, I don't want any menu, just to touch on a prim that makes all the prims get bigger.

With the following script I can make the prim where the script is placed to get 10% bigger, but not all of them. If I change from LINK_THIS to LINK_ROOT it works as it should, but when I try with "LINK_SET", each linked object gets to size 0,010, I can't make all linked objects to be 10% bigger.

This is the script I am using, it has the part false/true, because the original script was meant to touch once and make it bigger and then touch again to make it smaller, but I just want it to make the object bigger, so I made both options to increase the size on 10%.

integer bigger = FALSE;default{    touch_start(integer total_number)    {        if (bigger == FALSE){            llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_SIZE,(llList2Vector(llGetLinkPrimitiveParams(LINK_THIS,[PRIM_SIZE]),0)*1.1)]);            bigger = TRUE;        } else {            llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_SIZE,(llList2Vector(llGetLinkPrimitiveParams(LINK_THIS,[PRIM_SIZE]),0)*1.1)]);            bigger = FALSE;        }                }}

 

Thank you!!!

Edited by Gabrielle Scorfield
Link to comment
Share on other sites

I would invest in using llScaleByFactor() over any other means. It is, by far, the simplest method for resizing a linkset.

This was the last script feature Andrew Linden gave us before his departure from LL.

Sadly, it came kind of late as most worn content was already transitioning from prims to rigged mesh, but is still the best for anything resizable.

Link to comment
Share on other sites

1 hour ago, Lucia Nightfire said:

I would invest in using llScaleByFactor() over any other means. It is, by far, the simplest method for resizing a linkset.

This was the last script feature Andrew Linden gave us before his departure from LL.

Sadly, it came kind of late as most worn content was already transitioning from prims to rigged mesh, but is still the best for anything resizable.

This was exactly what I was looking for, it is perfect, I used the example script, I just had to change a bit.

Thank you so much!!! 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1371 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...