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...