Archive for July, 2008

MEL: Setting the value of a Slim attribute

Friday, July 11th, 2008

Setting the value of a Slim attribute, from MEL, requires a bit more overhead compared to the normal Maya attribute. The following example shows how it can be done.

string $palette = `slimcmd slim FindPalette “MYPALETTE”`;

string $all = `slimcmd $palette GetAppearances`;

string $shaders[];

tokenize( $all, " ", $shaders );

 

for ( $s in $shaders ) {

    string $attr [...]