Gabrielle Scorfield Posted August 26, 2019 Share Posted August 26, 2019 (edited) 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 August 26, 2019 by Gabrielle Scorfield Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 26, 2019 Share Posted August 26, 2019 You'll want to look at Dora Gustafson's script : Link to comment Share on other sites More sharing options...
Lucia Nightfire Posted August 26, 2019 Share Posted August 26, 2019 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 More sharing options...
Gabrielle Scorfield Posted August 26, 2019 Author Share Posted August 26, 2019 1 hour ago, Rolig Loon said: You'll want to look at Dora Gustafson's script : Thank you for helping!!! :D Link to comment Share on other sites More sharing options...
Gabrielle Scorfield Posted August 26, 2019 Author Share Posted August 26, 2019 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 More sharing options...
Gabrielle Scorfield Posted August 26, 2019 Author Share Posted August 26, 2019 If someone needs the same, this is the script: Quote integer growing; default { touch_start(integer num_detected) { llScaleByFactor(1.1); } } Link to comment Share on other sites More sharing options...
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