So I'm working on player customization GUI, however, I can't seem to get the mesh to switch materials in the GuiObjectView.. I've been researching for hours, and dumping over and over, but I can't seem to come across an explanation, thus I'm here. If there's a way to access the object through the GuiObjectView, please do tell. I've tried getObject(), and that returns nothing with any number in the args. I basically need the ID of the player model I've set inside the GuiObjectView. function replaceSimpleMaterial(%matname,%mapto,%RGBA)
{
if(%e==1)
{
%se = "emissive[0] = 1;";
%add = "emissive";
}
if(%g==1)
{
%sg = "glow[0] = 1;";
%add = %add @ "glow";
}
%r = getWord(%RGBA,0);
%g = getWord(%RGBA,1);
%b = getWord(%RGBA,2);
%a = getWord(%RGBA,3);
$eval = "singleton Material(" @ %matname @ %add @ %cl @ ")" NL
"{" NL
"mapTo = " @ %mapto @ ";" NL
"diffuseColor[0] = \"" @ %r-0.1 SPC %g-0.1 SPC %b-0.1 SPC %a @ "\";" NL
"specular[0] = \"" @ %r SPC %g SPC %b SPC %a @ "\";" NL
"specularPower[0] = " @ 50 @ ";" NL
%se NL
%sg NL
"translucentBlendOp = \"None\";" NL
"};";
eval($eval);
DecoyDAE.setMeshMaterial(%mapto SPC 2,%matname @ %add @ %cl);
echo(%RGBA);
} I'm using DecoyDAE at the moment, which just makes the targeted node disappear. :?: :?: :?: