https://en.wikipedia.org/wiki/RGB_color_model#Numeric_representations
Maya's color values are floating point (as far as I know)
On Mon, Oct 5, 2015 at 10:27 AM Crest Christopher <
crestchristop...@gmail.com> wrote:
> How do you know what color 0,0,1.0 is ?
>
> Justin Israel wrote:
>
> The switch
How do you know what color 0,0,1.0 is ?
Justin Israel wrote:
The switch statement has some limitations for your application. You
can’t use an array as a switch expression, and you can’t use vector
variables as switch cases…
Vector with switch:
|vector $myColor =<<0, 0, 1.0>>;
switch ($myC
The switch statement has some limitations for your application. You can’t
use an array as a switch expression, and you can’t use vector variables as
switch cases…
Vector with switch:
vector $myColor = <<0, 0, 1.0>>;
switch ($myColor){
case <<1.0, 0, 0>>:
print "RED!";
break;
The color values should be in an array ?
$color = [22,204,61],[34,56,165];
On Sunday, October 4, 2015 at 2:51:55 PM UTC-4, Justin Israel wrote:
>
> Arrays:
>
> http://download.autodesk.com/global/docs/maya2014/en_us/files/Arrays_vectors_and_matrices_Arrays.htm
>
> Vectors:
>
> http://download.auto
Arrays:
http://download.autodesk.com/global/docs/maya2014/en_us/files/Arrays_vectors_and_matrices_Arrays.htm
Vectors:
http://download.autodesk.com/global/docs/maya2014/en_us/index.html?url=files/Arrays_vectors_and_matrices_Vectors.htm,topicNumber=d30e790326
On Mon, 5 Oct 2015 7:15 AM Christopher.
I want to change the color of a sphere using Switch in MEL this is what I
have thus far, it is not working ?
Can you store RGB values in a int ?
string $obj_sphere = pSphere1;
int $color = 22, 204, 61;
switch ($color) {
case $obj_sphere: 104,160,60;
break;
}
--
You received this m