Hi...
I need a little help in a simple script that I had made to speed up the work-flow. Essentially what I need to do is assign a shader named Mascara, so I use this simple script:
sets -e -forceElement MascaraSG;
But when I do that the following error appears:
// Error: line 364: No object matches name: MascaraSG
However, this shader exists and if I search for him on Hypershader and assign this script starts to work.
So, I though that if I load this shader in the memory, like creating a search for him, maybe the "sets -e -forceElement MascaraSG;" starts to work.
I tried this:
string $masFilter = `itemFilter -bn "*Mascara*"`;
lsThroughFilter $masFilter;
But now I had a little problem. It's possible to use the value of the variable to select the shader?
Like select -r " "...
Any tip please =D
Thanks