If an artist creates an object, then goes straight to the Create PSD network, all future objects created in Maya 7 will have the PSD network assign to that object which was formally the default gray lambert1. I want to create a shelf button that first checks to see if the material assign to the one single selected object is the default lambert1 or not. If so, then create an Dialog window that alerts the artist to assing a new material first and then try creating a PSD Network. Here's my wish list that I need created in MEL:
CODE
//Script concept workflow
if
selected object is using the default lambert material.
Create a dialog box "Assign New Material"
else
photoShopPaintTex;
Dream List:
Inside the Assign New Material dialog, have it where there is are buttons to assign either a new Lambert, a Blinn, an Anisotropic or a Phong to the selected object and then run the photoShopPaintTex; command. But first, since the photoShopPaintTex; command requires only one item, that would need to be tested in the very beginning to be sure the artist doesn't assign a new shader to more than one object and then get an red Error: No object has been selected / More than one object has been selected in the Command Feedback about the photoShopPaintTex;
CODE
//Script concept workflow
$sel = selection count.
if $sel != to 1
create dialog1 box "You have $sel objects selected"
"Select One Object for Texturing"
button [Close]. // kill the script.
if selection is == to default lambert
create dialog2 box "Assign a New Material"
"[Anisotropic]" "[Blinn]" "[Lambert]" "[Phong]" "[Cancel]"
//For each material button add the photoShopPaintTex; command at the end of the button command so that once the material has been assigned, the script goes onto to the normal Create PSD Network for the artist.
Thanks for any and all help!