MEL expression command syntax?

MEL expression command syntax?

Anonymous
Not applicable
442 Views
2 Replies
Message 1 of 3

MEL expression command syntax?

Anonymous
Not applicable
I'm pretty new to MEL, but I'm writing a script that will create an expression. I keep getting syntax errors, and I've searched all over for how to properly write out the expression -s command. Can anyone help out?


expression -s ( float $u = " cpos_ " + $peg + ".parameterU";\n"+
float $v = "cpos_" + $peg + ".parameterV";\n"+
float $rgb[] = `colorAtPoint -o RGB -u $u -v $v file1`;"\n"+
"litebrite_shader_"+ $peg + ".colorR" = $rgb;\n"+
"litebrite_shader_"+ $peg + ".colorG" = $rgb;\n"+
"litebrite_shader_"+ $peg + ".colorB" = $rgb; );
0 Likes
443 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
expression -s ("float $u = cpos_" + $peg + ".parameterU;\n" + 
"float $v = cpos_" + $peg + ".parameterV;\n" +
"float $rgb[] = `colorAtPoint -o RGB -u $u -v $v file1`;\n" +
"litebrite_shader_" + $peg + ".colorR = $rgb;\n" +
"litebrite_shader_" + $peg + ".colorG = $rgb;\n" +
"litebrite_shader_" + $peg + ".colorB = $rgb;") ;

0 Likes
Message 3 of 3

Anonymous
Not applicable
Thank You! I can see the difference. Very clear. I really appreciate the help.
0 Likes