c4d.plugins.PreferenceData

class c4d.plugins.PreferenceData
Defines a new preference category in the Cinema 4D preference dialog.
Register this type of plugin with RegisterPreferencePlugin().

New in version R19.

Methods Signatures

PreferenceData.InitPreferenceValue(self, id, data, desc, ...)

Initializes preference values in bc.

Inheritance

Parent Class:

Methods Documentation

PreferenceData.InitPreferenceValue(self, id, data, desc, descid, bc)

Initializes preference values in bc.

Parameters
  • id (int) – The world container ID of the preference parameter.

  • data (any) – The value used for the initialization.

  • desc (Optional[c4d.Description]) – The description of the preference hook. If None, id is used instead of descid.

  • descid (c4d.DescID) – The description ID of the preference parameter.

  • bc (c4d.BaseContainer) – The preference world container. A plugin should always store its parameters in a sub-container in the world container.