On the same expression I am assigning different shaders. It works fine most of the time, but I keep getting these fatal errors when I switch characters. I'm not sure why its happening, but I assume it has to do with this texture switching.
Even if it doesnt, I really dont like the way i have this set up...heres a sample of the expression.
if (Main_Control.Character == 6)
NurseAccesories.visibility = 0;
WomanAccesories.visibility = 0;
AbeAccesories.visibility = 0;
RobotAccesories.visibility = 1;
NinjaAccesories.visibility = 0;
hyperShade -assign RobotShader;
is there any way to do the shader assignment just with nodes instead of having to do the selection bit? In the hypershade I cant see any connections from the shader to the model, so I'm not sure how to apply it there. Also, because it's an in-maya perspective window game, things like layered shaders probably won't do any good.
Also, if there are any other ideas what might make this scenario unstable to give me fatal errors every 8 or so times I switch....maybe a memory thing?? I dont' know..
Any help would be much appreciated.