Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scripting slices into prims

EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
07-13-2009 15:27
Is there any way of scripting a "slice" into a box prim using LSL?

llSetPrimitiveParams does not appear to support this particular parameter for PRIM_TYPE_BOX, and the "dimple trick" appears to be inappropriate when you want to slice evenly aboout a central plane.

Any information or suggestions would be much appreciated.

Thanks.
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
07-13-2009 15:52
From: EF Klaar
Is there any way of scripting a "slice" into a box prim using LSL?

llSetPrimitiveParams does not appear to support this particular parameter for PRIM_TYPE_BOX, and the "dimple trick" appears to be inappropriate when you want to slice evenly aboout a central plane.

Any information or suggestions would be much appreciated.

Thanks.


By "slice" do you mean cut beginning and end? "Vector cut" corresponds to this, unless I am misunderstanding the question.

Edit > Oh, if you're trying to do prim torture via script, I haven't tried it but this link may help:
http://rpgstats.com/wiki/index.php?title=LibraryPrimTorture
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
07-13-2009 16:07
All of the standard cut, taper, twist, hollow, etc actions that you find in the Edit window when you work on a prim "by hand" are available as options in llSetPrimitiveParams. See . It's long and complicated reading, but everything is in there.

ETA: Oh, and the parameter is not "vector cut". It's "cut." It is a vector with x and y components (z is ignored). x is cut start and y is cut end.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
07-13-2009 16:36
From: Logan Bauer
By "slice" do you mean cut beginning and end? "Vector cut" corresponds to this, unless I am misunderstanding the question.
By "slice" I mean the new "slice" parameter available in the edit window for box prims in the 1.23 viewer (and, I understand, in Snowglobe). This lets you make very thin prims in a more controlled way than by using the old "dimple trick" (which involves creating a sphere prim, putting a dimple in it and then converting it into a box prim).
From: Rolig Loon
All of the standard cut, taper, twist, hollow, etc actions that you find in the Edit window when you work on a prim "by hand" are available as options in llSetPrimitiveParams. See http://lslwiki.net/lslwiki/wakka.ph...PrimitiveParams.
If "slice" is supported by llSetPrimitiveParams, it doesn't appear to be documented in the LSL wiki. If you can point me at where it is documented, I'd be very grateful.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
07-13-2009 16:44
Nope. No "slice" yet, as far as I know. I haven't had any call for that new one yet, so I forgot about it. Sorry.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
07-13-2009 17:26
From: EF Klaar
Is there any way of scripting a "slice" into a box prim using LSL?

llSetPrimitiveParams does not appear to support this particular parameter for PRIM_TYPE_BOX, and the "dimple trick" appears to be inappropriate when you want to slice evenly aboout a central plane.

Any information or suggestions would be much appreciated.

Thanks.
https://jira.secondlife.com/browse/MISC-2847

(^_^)y
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y


http://slurl.com/secondlife/Ferguson/54/237/94
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
07-13-2009 19:58
I guess that answers my question pretty effectively :) I do have a plan B. Thank you :)
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
07-13-2009 22:14
you can access the new slice function by first calling prim type sphere, then calling your slice (dimple) then converting to the type you want and setting the other options
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
07-14-2009 01:24
From: Void Singer
you can access the new slice function by first calling prim type sphere, then calling your slice (dimple) then converting to the type you want and setting the other options
No not by script:( from the editor you can, but there is no need! The 1.23 viewer has introduced 'slice' on BOX, CYLINDER and PRISM prim types. 'Dimpled' spheres will loose there dimples when you alter the prim type to a BOX, CYLINDER or PRISM by script. llSetPrimitiveParams has no parameter for dimple/slice for those prim types.
_____________________
From Studio Dora
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
07-14-2009 02:34
From: Dora Gustafson
No not by script:( from the editor you can, but there is no need! The 1.23 viewer has introduced 'slice' on BOX, CYLINDER and PRISM prim types. 'Dimpled' spheres will loose there dimples when you alter the prim type to a BOX, CYLINDER or PRISM by script. llSetPrimitiveParams has no parameter for dimple/slice for those prim types.
hmmm when did they completely hose prim torturing? it may still work on prim type legacy, not sure (someone else can test that). but you're right it's filling in empty values on type changes using the newer prim types... this makes about the 5th case in the last month where I've noticed that LL has installed some stupid default valuation where it shouldn't be and ends up wiping out legitimate data.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -