Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetPrimitiveParams

Kamilah Hauptmann
Um, what?
Join date: 10 Nov 2005
Posts: 122
03-17-2006 15:42
I'm working on a script to change the cut and and size of a cylinder on a touch. I've managed to get others to rotate, move, change size etc with default state and alternate state with llSetPos and llSetLocalRot.

Where I'm having the problem is llSetPrimitiveParams.

I have a working bit code from the WIKI to tell me the parameters:
llSay(0, (string) llGetPrimitiveParams([PRIM_TYPE]));

This works:
llSetPrimitiveParams([PRIM_SIZE, <1, 1, 1>]);

This does not:
llSetPrimativeParams([PRIM_TYPE, PRIM_TYPE_CYLINDER, 0, <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>]);

The error received is 'Name not defined within scope'. The error occurs at the end between the ] and the );

This is a direct cut and paste from the WIKI under the Example rule column in the PRIM_TYPE constant table:
[PRIM_TYPE, PRIM_TYPE_CYLINDER, 0, <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>]

Any ideas why that occurs there?
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
03-17-2006 15:47
Check the way you spelled "Primitive" in both cases, assuming you copied and pasted each command and this isn't a typo in your post here, there's your problem. ;) Happens to the best of us. :)
Kamilah Hauptmann
Um, what?
Join date: 10 Nov 2005
Posts: 122
03-17-2006 15:56
Must. Have. More. Coffee.

Sincerely, thank you for two things, the accuracy and good manners of your reply. Fixed. :)
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
03-17-2006 16:41
From: Kamilah Hauptmann
Must. Have. More. Coffee.

Sincerely, thank you for two things, the accuracy and good manners of your reply. Fixed. :)



It's amazing how life plays out, sometimes.
;)