c4d.plugins.GeResource

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

Members

GeResource.__init__()

Create a new resource object.

Return type: GeResource
Returns: The new resource object.
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.

Parameters: 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()

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

Table Of Contents