Post #794:  operator with this operator:
bpy.ops.pme.exec(cmd="bpy.ops.sculpt.detail_flood_fill('INVOKE_DEFAULT', True)")
Or just add parentheses and PME will generate code for pme.exec operator automatically:
(bpy.ops.sculpt.detail_flood_fill('INVOKE_DEFAULT', True))
Don’t forget to add ‘INVOKE_DEFAULT’, True arguments when you use pme.exec operator.
‘INVOKE_DEFAUL’ means that the operator will be executed in interactive mode (if supported).
True allows to undo the operator (if supported).
MmAaXx:
Also, is there a way to put a macro inside a pie menu?
thanks!
Yes, select the macro in pie menu’s item Menu tab.