On 10/08/2017 at 00:19, xxxxxxxx wrote:
Bit of a beginners question, but i'm looking to find out where i can get more info on getting and setting global preferences - in particular accessing the sub-containers.
I am referencing this thread: GetWorldContainer to change preferences
In it Andreas kindly explains how to access the net-render sub-container:
ma = c4d.GetWorldContainerInstance() np = ma[c4d.PREFS_PRI_NET] # get the net render sub-container np[c4d.PREF_NAME] = "NewName" ma[c4d.PREFS_PRI_NET] = np # store the changed container to preferences c4d.EventAdd()
I would like to access the preferences > files > autosave sub-container. However, if someone could point me in the direction of where to find a list of all the different subcontainers, or how to access them, that would be amazing (knowledge is power and all that )