ambient and specular color

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 16/07/2004 at 12:46, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.2 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
i want to retrieve the ambient and the specular colors of a material but i don't know how ...
i've got a BaseMaterial and a BaseChannel (by calling BaseMaterial::GetChannel(CHANNEL_COLOR or CHANNEL_SPECULARCOLOR)) but in the description for the member function BaseChannel::GetData there aren't any color values

thanks in advance for your help!

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/07/2004 at 16:10, xxxxxxxx wrote:

These are now stored in MATERIAL_COLOR_COLOR and MATERIAL_SPECULAR_COLOR in the material description. (See Mmaterial.)

    
    
    GeData coldata;  
    mat->GetParameter(DescID(MATERIAL_SPECULAR_COLOR), coldata, 0);  
    Vector col = coldata.GetVector();

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 18/07/2004 at 00:32, xxxxxxxx wrote:

ok, that's quite different from the COFFEE version of material color retrieval 🙂

thanks