View Full Version : Changing default shader
Criogen 07-30-2003, 01:24 PM How do I change maya's default shader?
So every time I make new object it has this shader attached.
|
|
augustus
07-30-2003, 01:57 PM
Just create a new shader and connect it to the initialShadingGroup.
Levitateme
01-21-2004, 10:27 AM
is there anyway to make this automatic?
Sentenza
01-21-2004, 05:23 PM
Do it in your usersetup.mel
with tis line of text :
setAttr lambert1.color 0.55 1.0 1.0;
__________________R G B
or write something like this in the usersetup
global proc DefaultMatCol()
{
setAttr lambert1.color 0.55 1.0 1.0;
}
Then you just need to create the file DafaultMatCol.mel with the single line in it ...
annaleah
10-12-2005, 12:34 AM
Do it in your usersetup.mel
with tis line of text :
setAttr lambert1.color 0.55 1.0 1.0;
__________________R G B
or write something like this in the usersetup
global proc DefaultMatCol()
{
setAttr lambert1.color 0.55 1.0 1.0;
}
Then you just need to create the file DafaultMatCol.mel with the single line in it ...
Did anyone get this to work?
I tried it and I must be misunderstanding because it doesnt change the default lambert1.
stallion151
10-12-2005, 02:41 AM
do the second one, i have that already. works for me. its exactly the same
annaleah
10-12-2005, 03:26 AM
do the second one, i have that already. works for me. its exactly the same
Thanks.
Still not loading correctly.:rolleyes: My fault I know...lol
I put this in my user setup.mel
/////////////
global proc DefaultMatCol()
{
setAttr lambert1.color 0.55 1.0 1.0;
}
/////////////////
Then I made a mel called "DefaultMatCol.mel"
and put this in it...
setAttr lambert1.color 0.55 1.0 1.0;
I started Maya and sourced the DefaultMatCol.mel and then run the script with the hypershade open and it changed the color of Lambert1 but it didnt change it at startup....
So I must still be confused about this whole thing.
Thanks for any explaination.
annaleah
10-12-2005, 04:22 PM
And I tried it the other way around and it didnt do anything either....:scream:
reven
10-12-2005, 05:02 PM
so is this to change the shader From default to another shader(BLINN or PHONG) or are you just changing the color?
annaleah
10-12-2005, 10:37 PM
It would be great to change it to phong or blinn and change the color also.
Im just at a loss as to what to actually put in the user.mel and what to name and put into the script.
hominid
10-12-2005, 11:18 PM
I think you need to put the global proc block of code into the DefaultMatCol.mel file then call DefaultMatCol() from the usersetup.mel
Cheers,
Pete
annaleah
10-13-2005, 12:26 AM
I made a hotkey for it and a shelf button.
Not as great as a automatic script but it works.....:banghead:
CGTalk Moderation
10-13-2005, 12:26 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.