Macro(bpy_struct)

base class — bpy_struct

class bpy.types.Macro(bpy_struct)

Storage of a macro operator being executed, or registered after execution

bl_description
Type:string, default “”
bl_idname
Type:string, default “”, (never None)
bl_label
Type:string, default “”, (never None)
bl_options

Options for this operator type

  • REGISTER Register, Display in the info window and support the redo toolbar panel.
  • UNDO Undo, Push an undo event (needed for operator redo).
  • BLOCKING Blocking, Block anything else from using the cursor.
  • MACRO Macro, Use to check if an operator is a macro.
  • GRAB_CURSOR Grab Pointer, Use so the operator grabs the mouse focus, enables wrapping when continuous grab is enabled.
  • PRESET Preset, Display a preset button with the operators settings.
  • INTERNAL Internal, Removes the operator from search results.
Type:enum set in {‘REGISTER’, ‘UNDO’, ‘BLOCKING’, ‘MACRO’, ‘GRAB_CURSOR’, ‘PRESET’, ‘INTERNAL’}, default {‘REGISTER’}
bl_translation_context
Type:string, default “Operator”
name
Type:string, default “”, (readonly, never None)
properties
Type:OperatorProperties, (readonly, never None)
report(type, message)

report

Parameters:
  • type (enum set in {'DEBUG', 'INFO', 'OPERATOR', 'PROPERTY', 'WARNING', 'ERROR', 'ERROR_INVALID_INPUT', 'ERROR_INVALID_CONTEXT', 'ERROR_OUT_OF_MEMORY'}) – Type
  • message (string, (never None)) – Report Message
classmethod poll(context)

Test if the operator can be called or not

Return type:boolean
draw(context)

Draw function for the operator

Inherited Properties

Inherited Functions

References