TimCallaway
08-28-2012, 05:24 PM
Hi, I'm new to Coffee, so bare with me..
We are using c4d as part of our pipeline, and as most know there is the issue with no render layers. I am creating this script to help the lookdev folks speed up the process of creating all the different scenes.
I got everything working well, just one little thing.
I want to clear the texture from a shader, what would I do to do that?
mat#MATERIAL_COLOR_SHADER = ? ;
This seems to be the right one, just how to clear it?
I have the script go through the materials and set some attr's, change the color to white, just need to clear the texture.
var mat = doc->GetFirstMaterial();
if(!mat)return;
while(mat)
{
if(mat->GetName() == "Skin")
{
mat->SetBit(BIT_ACTIVE);
mat#MATERIAL_COLOR_COLOR = vector(1,1,1);
mat#MATERIAL_COLOR_SHADER = ?; //What do I use to clear this?
}
mat = mat->GetNext();
}
We are using c4d as part of our pipeline, and as most know there is the issue with no render layers. I am creating this script to help the lookdev folks speed up the process of creating all the different scenes.
I got everything working well, just one little thing.
I want to clear the texture from a shader, what would I do to do that?
mat#MATERIAL_COLOR_SHADER = ? ;
This seems to be the right one, just how to clear it?
I have the script go through the materials and set some attr's, change the color to white, just need to clear the texture.
var mat = doc->GetFirstMaterial();
if(!mat)return;
while(mat)
{
if(mat->GetName() == "Skin")
{
mat->SetBit(BIT_ACTIVE);
mat#MATERIAL_COLOR_COLOR = vector(1,1,1);
mat#MATERIAL_COLOR_SHADER = ?; //What do I use to clear this?
}
mat = mat->GetNext();
}
