This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com

c4d.plugins.GeResource – a global resource class

This class is used for accessing resource files on the harddrive, for example to load dialog resources or to access string tables.

class c4d.plugins.GeResource

Methods

GeResource.Init(path)

Initialise the resources from their files in the res folder. The filename path must be the root directory of the plugin’s folder.

Parameter:path (str) – The root directory of the plugin’s folder to find the res folder.
Return type:bool
Returns:Success of initialising.
GeResource.InitAsGlobal()

Lets you access the CINEMA 4D main application string resource.

Return type:bool
Returns:Success of initialising.
GeResource.LoadString(id)

Load a string with the ID from the string resource file.

See also

GeLoadString

Parameter:id (int) – The ID for the string in the resource file.
Return type:bool
Returns:Success of initialising.

Table Of Contents

This Page