Configuration
← Older revision
Revision as of 01:44, 31 May 2016
(3 intermediate revisions by the same user not shown)
Line 53:
Line 53:
−
''commandlist'' list of
the
commands and values, separated by comma and space chars. The commands are
+
''commandlist''
is the
list of commands and values, separated by comma and space chars. The commands
and parameters
are
−
* "color" hex - value is given by hexadecimal value like "A7B8C9", as known from HTML. You can obtain it from color editor in some viewers (e.g. Firestorm has it.)
+
* "color" hex - value is given by hexadecimal value like "A7B8C9", as known from HTML. You can obtain it from
paint programs or the
color editor in some viewers (e.g. Firestorm has it.)
* "fullb" Y/N/1/0 - "Y" or "1" switch fullbright on, "N" or "0" switch off.
* "fullb" Y/N/1/0 - "Y" or "1" switch fullbright on, "N" or "0" switch off.
* "shiny" 0..3 - "0" means no shiny, "3" means max shiny.
* "shiny" 0..3 - "0" means no shiny, "3" means max shiny.
Line 64:
Line 64:
==== Color value ====
==== Color value ====
−
The hexadecimal color values are used in HTML, most if not all paint programs can print them and some viewers may give the
values
directly. When no such program or viewer is on hand, you can try an online RGB to HTML converter, for example these: [http://html-color-codes.info/ HTML Color Picker] or [http://www.rapidtables.com/web/color/RGB_Color.htm RGB Color Codes Chart].
+
The hexadecimal color values are used in HTML, most if not all paint programs can print them and some viewers may give the
value
directly. When no such program or viewer is on hand, you can try an online RGB to HTML converter, for example these: [http://html-color-codes.info/ HTML Color Picker] or [http://www.rapidtables.com/web/color/RGB_Color.htm RGB Color Codes Chart].
Please do not use the char "#" in the value, only the chars 0123456789ABCDEF, otherwise the value will be read wrong.
Please do not use the char "#" in the value, only the chars 0123456789ABCDEF, otherwise the value will be read wrong.
Line 74:
Line 74:
The script is installed and the listen is open (the prim is touched.)
The script is installed and the listen is open (the prim is touched.)
−
a) To make the top face red, glowing, fullbright
aktive
and see-trough, use this command:
+
a) To make the top face red, glowing, fullbright
active
and see-trough, use this command:
:<pre>/1901 top color ff0000, glow .75, fullb Y, alpha 0.5</pre>
:<pre>/1901 top color ff0000, glow .75, fullb Y, alpha 0.5</pre>
−
:When the script says "no such face 'top'" than the name "top" is not
assigned
in the configuration.
+
:When the script says "no such face 'top'" than the name "top" is not
used as face name
in the
script
configuration.
b) This command puts a blank image on each face and sets it medium shiny:
b) This command puts a blank image on each face and sets it medium shiny:
Line 120:
Line 120:
'''FACE_NUMS'''
'''FACE_NUMS'''
−
This one needs a bit better explanation. Basically, this list is a fixed dictionary that stores the face names and their numbers. This list explains what the face names mean. For example you have to tell the script that the face "top" has the number 0 before you can use the face name "top" in the paint commands.
+
This one needs a bit better explanation. Basically, this list is a fixed
face
dictionary that stores the face names and their numbers. This list explains what the face names mean. For example you have to tell the script that the face "top" has the number 0 before you can use the face name "top" in the paint commands.
−
You can assign different face names to the same face number but you may not assign different face numbers to the same face name. When you use the same face name two or more times in the list, probably the first occurance will win (depends how LSL
search
for
names
in
the
list.)
+
You can assign different face names to the same face number but you may not assign different face numbers to the same face name. When you use the same face name two or more times in the list, probably the first occurance will win (
this
depends how
the
LSL
processor searches
for
strings
in
a
list.)
The script below has currently this definition:
The script below has currently this definition:
Line 150:
Line 150:
The script will not know what name we use for what prim, every face name can be used for every prim. But we could feel more comfortable when we use one group of defined names for one group of prims and the other group of name definitions for an other group of prims. For example it may feel more convenient when we use the names "top" to "bottom" for cubes and the names "alpha", "beta", "gamma" for cylinders.
The script will not know what name we use for what prim, every face name can be used for every prim. But we could feel more comfortable when we use one group of defined names for one group of prims and the other group of name definitions for an other group of prims. For example it may feel more convenient when we use the names "top" to "bottom" for cubes and the names "alpha", "beta", "gamma" for cylinders.
−
The name "omega" is just for completeness. A number -1 means in LSL all faces, so we can have a name for this number, too. But using the special name "each" to address each
faces
of the addressed prim(s) is faster, hence rather reccomemded.
+
The name "omega" is
here
just for completeness. A number -1 means in LSL
'
all faces
'
, so we can have a name for this number, too. But using the special name "each" to address each
face
of the addressed prim(s) is faster, hence rather reccomemded.
= Painter Script =
= Painter Script =