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?
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->SetParameter(MATERIAL_GLOBALILLUM_GENERATE, false, DESCFLAGS_SET::NONE);
please notice that the ID is defined in the millum.h header file.
If you have general questions on how to handle materials with the C++ API you will find information in the documentation: