The goal was to have a single proc command that you can call on to make both materials. Using what I wrote, you'd change these lines in both your buttons. symbolButton -w 40 -h 40 -image "blinn.svg" -c "createMat("blinn")" ; symbolButton -w 40 -h 40 -image "blinn.svg" -c "createMat("lambert")" ; I know this stuff can be…
Both your buttons have the same line: " -c "createMat()" ", which means they are both running that command, which only creates a blinn. I made a change to your script to take a name value proc createMat(string $name){ string $sel[] = `ls -sl`; // Use the $name variable to create a material of that type; eg blinn, lambert,…
Hi, this code is modified by bodizz (he gave me the blinn command ) but I want to add lambert material also so I changed in the Blinn material command. After changing the blinn command they both are working as a Lambert command or lambert material how can I make it unique. proc createMat(){ string $sel[] = `ls -sl`; string…