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).
I need to disable the Generate GI in the material mananger.And i have found the Parameter"MATERIAL_GOBALILLUM_GENERATE"but not worked on my project,could Anyone take some example on C++ about how to disable this?
Hello,
please post questions on Cinema 4D plugin development in the "Cinema 4D Development" forum. When doing so, please also use the appropriate tags.
MATERIAL_GLOBALILLUM_GENERATE is the correct ID of that parameter. You just have to set the parameter value of the material you want to edit:
MATERIAL_GLOBALILLUM_GENERATE
material->SetParameter(MATERIAL_GLOBALILLUM_GENERATE, false, DESCFLAGS_SET::NONE);
please notice that the ID is defined in the millum.h header file.
millum.h
If you have general questions on how to handle materials with the C++ API you will find information in the documentation:
best wishes, Sebastian