Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 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