These forums are CLOSED. Please visit the new forums HERE
set text using scultps? |
|
Shaden Sura
Registered User
Join date: 10 Oct 2006
Posts: 68
|
11-29-2009 08:14
Hye anyone know is possible to set text using sculpts letters with a script like you do it using the XY test scripts if anyone know something about this or anyone sell a script that this plz let me know I am looking for one.
|
Papalopulus Kobolowski
working mind
![]() Join date: 11 Aug 2006
Posts: 326
|
11-29-2009 09:08
If you mean about setting the sculpt texture via script , it can be made it with
http://wiki.secondlife.com/wiki/LlSetPrimitiveParams PRIM_TYPE | PRIM_TYPE_SCULPT _____________________
![]() RAW terrain files - terraform your SIM!! http://www.wishland.info/ PD:the wiki its your friend ![]() http://wiki.secondlife.com/wiki/LSL_Portal |
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
11-29-2009 16:35
The most simple (though not most efficient) method would be to name every sculpt texture with the letter it represents, "a", "b", "c", etc... then, drop all those textures into a sculpt prim.
Create a script that listens on a certain channel, then grabs the Nth character in the string it hears, corresponding to the prim's place in the sequence of characters. integer INDEX = 0; // first char in the display, second would be 1, third 2 and so-on integer CHANN = 1; // listen channel default { state_entry() { llListen(CHANN, "", "", "" ![]() } listen(integer ch, string n, key id, string msg) { string char = llGetSubString(msg, INDEX, INDEX); if (~llGetInventoryType(char)) llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SCULPT, char, PRIM_SCULPT_TYPE_SPHERE]); } } |
Johan Laurasia
Fully Rezzed
![]() Join date: 31 Oct 2006
Posts: 1,394
|
11-30-2009 00:28
I made a digital clock with sculpted LED numbers, and simply change the sculpt map, letters can be done the same way. You have to make the entire character set and upload each sculpt map, then using a lookup table stored in a list, and llGetSubString() to extract each character from the text.
|
Void Singer
Int vSelf = Sing(void);
![]() Join date: 24 Sep 2005
Posts: 6,973
|
11-30-2009 16:00
an option to that might be to make one master digital sculpt and just change the texturing to highlight the active part.
_____________________
|
| . "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... | - |