Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

ALL_SIDES - What do you use when you only want one side?

Piggie Paule
Registered User
Join date: 22 Jul 2008
Posts: 675
01-25-2009 16:50
Total NOOB when it comes to scripting and I'm only just starting to make small changes to some free scripts to see how some very basic things work.

I have a script which cycles a slideshow on a prim.

At the moment, it uses the ALL_SIDES command/variable? and the images get displayed on all faces of the prim.

This is not great (as you see a narrow bit down the side and along to top) so I'd like the image to only show on the 1 face (front)

I understand I will have to experiment to find out which face it which.

But, what do I put in the place of ALL_SIDES so that only 1 face gets the texture applied to it (during the slideshow)

I don't know the other "Words" to use.

Thanks
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
01-25-2009 16:55
It's an integer. ALL_SIDES = -1. Any value from 0 to 8 will do. (^_^)y

http://lslwiki.net/lslwiki/wakka.php?wakka=side
_____________________
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
Piggie Paule
Registered User
Join date: 22 Jul 2008
Posts: 675
01-25-2009 23:27
From: Imnotgoing Sideways
It's an integer. ALL_SIDES = -1. Any value from 0 to 8 will do. (^_^)y

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


Excellent, thanks for that.

Now Sorted :)
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
01-26-2009 08:26
You can also determine what side you have selected (using SELECT TEXTURE) and then pressing CTRL-ALT-SHIFT-T.
Quentin Jetcity
Registered User
Join date: 21 Sep 2007
Posts: 6
01-26-2009 09:40
another question i've had is... what if you want to do just sides 2 and 4

or 1,3,5 ???
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
01-26-2009 09:56
http://www.lslwiki.net/lslwiki/wakka.php?wakka=side

Some information on the sides of prims. And to do more than one face you can do a call for each face.
_____________________
Ravanne's Dance Poles and Animations

Available at my Superstore and Showroom on Insula de Somni
http://slurl.com/secondlife/Insula de Somni/94/194/27/
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
01-26-2009 09:56
You issue a command to set a texture (or color or whatever) for ALL_SIDES and then you issue to re-texture the one or two that are to be different. You can combine everything into a single command, like this ...

CODE

llSetPrimitiveParams([PRIM_COLOR,ALL_SIDES,<1,1,1>,1.0,PRIM_COLOR,0,<0,1,0>, 1.0,PRIM_TEXTURE, 2, "66864f3c-e095-d9c8-058d-d6575e6ed1b8", <2,8,0>, <.5,.5,0>, PI]);