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_cursor_pending

Cursor to use when waiting for the user to select a location to activate the operator (when bl_options has DEPENDS_ON_CURSOR set)

Type

enum in Window Cursor Items, default ‘DEFAULT’

bl_description
Type

string, default “”, (never None)

bl_idname
Type

string, default “”, (never None)

bl_label
Type

string, default “”, (never None)

bl_options

Options for this operator type

Type

enum set in Operator Type Flag Items, default {‘REGISTER’}

bl_translation_context
Type

string, default “Operator”, (never None)

bl_undo_group
Type

string, default “”, (never None)

has_reports

Operator has a set of reports (warnings and errors) from last execution

Type

boolean, default False, (readonly)

name
Type

string, default “”, (readonly, never None)

properties
Type

OperatorProperties, (readonly, never None)

report(type, message)

report

Parameters
  • type (enum set in Wm Report Items) – 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

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

Inherited Functions

References