c4d.plugins.GeResource

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

Members

GeResource.__init__()

Creates a new resource object.

Return type:c4d.plugins.GeResource
Returns:The new resource object.
GeResource.Init(path)

Initializes the resources from their files in the ‘res’ folder.

Parameters:path (str) – The root directory of the plugin’s folder to find the ‘res’ folder.
Return type:bool
Returns:True if successful, otherwise False.
GeResource.InitAsGlobal()

Lets access the Cinema 4D main application string resource.

Return type:bool
Returns:True if successful, otherwise False.
GeResource.LoadString(id)

Loads a string from the string resource file.

See also

GeLoadString()

Parameters:id (int) – The ID for the string in the resource file.
Return type:str
Returns:The string from the resource file for the passed id.