Complex UV Layout in Maya
Over the last couple of years UV layout in Maya has changed for the better. In this course we're going to be taking a look at some of those changes as we UV map an entire character
# 1 10-01-2014 , 02:09 PM
Subscriber
Join Date: Feb 2011
Posts: 42

nodePreset wont work with paint effect

The nodePreset wont work from inside a loop. What am i doing wrong. If i print the same piece of code but hardcode the variable then it will work for the 1 brush... but never for more than one. Is there an issue with applying presets to paint brushes in the scene with MEL?


string $taste[] =`ls-sl`;
for ($i=0; $i<size($taste); ++ $i) {

string $selStroke = ($taste[$i]);
string $FF[] = `listRelatives $selStroke`;
string $GG[] = `listConnections $FF[0]`;

nodePreset -load $GG[0] "preset_brush";

}
Thanks in advance.
I thought this would be simple to do...

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads