THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/03/2008 at 04:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.111
Platform: Windows ;
Language(s) : C++ ;
---------
Hi all.
I want to generate a material and switch off the specular channel which is on by default. How can I do that?
> \> BaseContainer \*cont= mat->GetDataInstance(); \> cont->SetLong(MATERIAL_USE_SPECULAR, 0); \> mat->Message(MSG_UPDATE); \> EventAdd(); \>
The above code does not work, no matter if I use SetLong or Set Bool. When I print the IDs from that container
using cont->GetIndexId() the ID 2009 (MATERIAL_USE_SPECULAR) does not exist.
Any ideas? Thanks in advance...
Yakuza