Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

~Something NOT found in the wiki~

Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
02-11-2008 15:08
I was tinkering around with the concept of making a sphere hollow, and path cutting it using script.
I looked up llSetPrimParms in the lsl wiki .... no examples existed of functions that cut and hollow a sphere. So I went to the help section, and got what information I could.
The first script I written turned out bad, kicked back an error during run time, about rule # 2 not being an integer .
((Please note this script is not complete))

CODE

default
{
state_entry()
{

llSetTimerEvent(1);
}

timer()
{
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 1, < .25, 1, 0.0>, 95, <0.0, 0.0, 0.0>, <0.0, 0.0, 0.0>, <0.0, 0.0, 0.0>]);
}
}


Here is what I want to accomplish... a hollow sphere, 95 hollow, .25 start cut, and 1 end cut..any one have a WORKING example on how to do this? Thanks
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
02-11-2008 17:57
No idea why you're using a timer, but the first problem I see is your 95% hole cut. You've entered it as 95, rather than 0.95 (a percent).

Also, you've entered hole shape 1. There is no 1. Here's the hole-shape table from the wiki:
DEFAULT = 0
SQUARE = 32
CIRCLE = 16
TRIANGLE = 48

llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, < 0.25, 1.0, 0.0>, 0.95, <0.0, 0.0, 0.0>, <0.0, 0.0, 0.0>, <0.0, 0.0, 0.0>]);
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
02-11-2008 18:37
From: DoteDote Edison

llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, < 0.25, 1.0, 0.0>, 0.95, <0.0, 0.0, 0.0>, <0.0, 0.0, 0.0>, <0.0, 0.0, 0.0>]);


Forgot the dimple:

llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0.25, 1.0, 0.0 >, 0.95, <0.0, 0.0, 0.0 >, <0, 1, 0 >]);
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
02-11-2008 23:27
You can get a prims parameters (llGetPrimitiveParams) and dump them to the chat (llList2CSV) and that will give you the proper parameters in the proper order for whatever type of prim you have.
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
02-12-2008 03:05
I preffer lslwiki.net rather than the official one:

http://lslwiki.net/lslwiki/wakka.php?wakka=llSetPrimitiveParams

http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryPrimTorture
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
02-12-2008 06:07
yesterday I started on an update project for LSL_Portal, mostly addind <lsl> tags for examples (of that examples are collored, and all functions used within are linked to their respective pages), along with adding some examples. I'd urge anyone who has time and inclination to add to the wiki's if they see something missing, regardless of which wiki you choose to add to.
_____________________
|
| . "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...
| -