THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/06/2011 at 10:22, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
How do you get at the World Dynamics attributes?
There seems to be several different variations of implementing the SetParameter() method. And no real explanation of which way to write it. Depending on the various different types of situations.
This kind of method works fine for the Project Settings & Info settings tab's attributes.
But not for the Dynamics tab's attributes:
doc->SetParameter(WORLD_ENABLED, GeData(FALSE), DESCFLAGS_SET_0);//<--doesn't work
Since these attributes are listed under sub group descriptions(General, Cache, Expert, Visualization). It occurred to me that I need to first target that subgroup description. Then target the individual attributes. But the SetParameter(const DescID& id, const GeData& t_data, DESCFLAGS_SET flags) method doesn't seem to allow for dealing with Sub Groups?
So I tried it this way:
BaseContainer *bc = doc->GetSettingsInstance(WORLD_GROUP_DYNAMICS);
if(!bc) return TRUE;
bc->SetParameter(DescID(WORLD_ENABLED), GeData(FALSE));//<--Still doesn't work
-ScottA