robot_designer_plugin.core.pluginmanager module
This sub module contains the PluginManager that handles automatic registration of classes.
- class robot_designer_plugin.core.pluginmanager.PluginManager[source]
Bases:
objectThis class handles the automatic registration of classes to Blender.
- PluginTypes
alias of
robot_designer_plugin.core.pluginmanager.PluginType
- classmethod clear()[source]
When a plugin is required to be reloadable (which it should be during development) each module is imported twice. Therefore, this method is called before the modules are reloaded.
- classmethod getFilePlugins(type_=PluginType.FILE)[source]
Warning
The plugin system is still under development.
- classmethod load_icon(id, filename)[source]
- Parameters
id (
str) – ID of the labelfilename (
str) – Relative toconfig/resource_path
- Returns
None
- classmethod register()[source]
Called from the top-level
robot_designer_plugin.register()function in the__init__.pyof the plugin. Registers all data collected during import.
- static register_class(*args)[source]
Class decorator for
operators.RDOperator,bpy.types.Menu,bpy.types.PropertyGroup(and morebpyclasses) andgui.CollapsibleBox.An example of how to use this decorator is given in
operators.RDOperator.- Parameters
args – For now, no arguments should be passed to the decorator.
- classmethod register_collapsible(property_name)[source]
Called when a class of type
gui.CollapsibleBoxis created.
- classmethod register_plugin(label, operators, draw_function=None, type_=PluginType.FILE)[source]
Warning
The plugin system is still under development.
- classmethod register_property_groups(property_group, btype)[source]
Properties have to be assigned to blender types. This function collects all properties and assigns them when
register()is called and unloads them whenunregister()is called.- Parameters
property_group – A class derived from
bpy.types.PropertyGroup.btype – Any type defined in
bpy.types.
- Returns
- classmethod unregister()[source]
Called from the top-level
robot_designer_plugin.unregister()function in the__init__.pyof the plugin. Removes all data collected during import.