Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

script parameters and actual parameter not match

Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
10-27-2008 06:00
Strange thing - I want to change a box from one size (smaller) to a box (1.169, 1.564, 0.080) tapered y = 0.10 and topshear x =-0.050 - I write the script line:

llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_BOX, 0, <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <0.0, 0.10, 0.0>, <-0.05, 0.0, 0.0>, PRIM_SIZE, <1.169, 1.564, 0.080>]);

I've also tried:

llSetPrimitiveParams([PRIM_SIZE, <1.169, 1.564, 0.080>, PRIM_TYPE, PRIM_TYPE_BOX, 0, <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <0.0, 0.10, 0.0>, <-0.05, 0.0, 0.0>]);

yet the result is a correct sized box with the correct topshear but a taper x = 1.00, y = 0.90?

Any ideas what is happening?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
10-27-2008 08:54
Very strange. See in http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetPrimitiveParams the question "What is up with taper_a & taper_b?" The box type uses 'taper_b', so I think you're going to want a value of 0.9 in llSetPrimitiveParams() if you want it to have a taper value of 0.1 in the edit window. :rolleyes:
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
10-27-2008 16:01
Thanks, I'll check it out
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
10-27-2008 16:12
You are a bloody marvel! - big kiss!!