Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
On 26/05/2003 at 01:00, xxxxxxxx wrote:
Try calling m->Update(TRUE, TRUE) after making the changes.