Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

display a set of textures on a cube

madddyyy Schnook
SLGuides Virtual Worlds
Join date: 2 Jan 2006
Posts: 207
04-25-2007 08:36
only recently entered the scripting side of sl. And i was playing around with a few scripts and wondered how to put 6 textures on 6 prims like on the inside of a linke cube. via chat.
i have seen the scripts for changing a window to have cutains useing 2 textures one obviously a texture with and without curtains. but how does one change all six on each prim at once.
thanx
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
04-25-2007 08:56
From: madddyyy Schnook
only recently entered the scripting side of sl. And i was playing around with a few scripts and wondered how to put 6 textures on 6 prims like on the inside of a linke cube. via chat.
i have seen the scripts for changing a window to have cutains useing 2 textures one obviously a texture with and without curtains. but how does one change all six on each prim at once.
thanx


You can change all the sides to teh same texture in one go using ALL_SIDES as your face parameter, i.e.

llSetTexture("my texture",ALL_SIDES);

To put different textures on each face would require that your script set each individually based on the chatted text. The 0.2 second per call delay can be counteracted by using llSetPrimitiveParams instead.

How you map what is said in chat to a texture would be down to the individual.