i don't know much about mel scripting and i'm trying to figure it out. i have a few custom buttons but what i want to do now is create a button that essentially checks to see if a material named "Xray" exists and if it does to apply it to the currently selected object. even nicer would be if i hit the same button and it…
Heres some simple code to toggle xray, it's not want you wanted but does the same job (unless you wanted transparency thats on 50$). Let me know if you want me to explain it but it should be relatively straight forward. Ill post the code for the material switching later on or probably tomorrow. string $sel[] =`ls -sl`; for…