Operator Manager

Warning

This class should not be used directly, but should be accessed by om

Manage operators.

This module contain class for managing operator that will be registered in blender, in future will be used also for drawing the UI.

class uv_align_distribute.operator_manager.__OperatorManager[source]
addOperator(operator)[source]

Register ‘operator’ to blender operators.

addUI(ui)[source]

Warning

Curently unused.

classList()[source]

Return the registered operators.

draw(context, layout)[source]

Warning

Curently unused.

Usage:

Import the module and use the symbol ‘om’. ‘om’ is a static global instance of OperatorManger. Then call ‘addOperator(YourOperator)’.

Example:

from . import make_islands, templates, utils, operator_manager

class MyOperator(templates.UvOperatorTemplate):
  # operator logic


_om = operator_manager.om
_om.addOperator(MyOperator)