|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
11-29-2008 23:10
I have a cube with a hollow - I want to leave all the settings (tapers etc), key and textures of the prim untouched, yet change the size of it by a script.
I use Prim_Size, but the hollow dissapears? I realize that I can use Prim_Parameters , brim_type etc but doesn't this createed a new prim and delete the old?
I guess what I am trying to avoid is to having to reload partially loaded textures.
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
11-30-2008 02:09
Maybe I do not read what you mean to say, but I see no problem in using llSetScale(vector scale). It will not change any other attributes but the size. It will not work for physical prims though, see: http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetScale
_____________________
From Studio Dora
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
11-30-2008 07:26
From: Tarak Voss I use Prim_Size, but the hollow dissapears? I realize that I can use Prim_Parameters , brim_type etc but doesn't this createed a new prim and delete the old?
Nope. Try putting llOwnerSay((string)llGetKey()); in each time you do llSetPrimitiveParameters -- you should find it stays the same.
|
|
Taff Nouvelle
Virtual Business Owners
Join date: 4 Sep 2006
Posts: 216
|
11-30-2008 07:36
Both llSetPrimitiveParams([PRIM_SIZE,<Vector Scale>]); and llSetScale(<Vector Scale>  ;work without changing anything but the size, what exactly is the problem you are having??
|
|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
12-01-2008 02:31
Thanks evryone - especially Taff for sending me an example 
|