THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/05/2003 at 16:49, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
I've created my set of materials. I can enable the needed channels, but I can't set any of the values in the channels.
I was trying:
m->SetChannelState(CHANNEL_COLOR,TRUE); - works fine
BaseChannel *b = m->GetChannel(CHANNEL_COLOR);
BaseContainer c = b->GetData();
c.SetVector(MATERIAL_COLOR_COLOR,myVector); - for color
c.SetReal(MATERIAL_COLOR_BRIGHTNESS,myReal);
b->SetData(c);
No values change.
First attempt to understand and use containers - enum values came from the material.h file.
Thanks,
David