Post #1083: ![](https://blenderartists.org/user_avatar/blenderartists.org/chalybeum/48/51807

πŸ“‹ Metadata

  • Author: roaoao
  • Date: 2017-11-03 02:14:31
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01082

🏷️ Tags

macro pie-menu operators intermediate solved

  • Pie Menu Editor
  • Macro Editor
  • Command tab
  • Menu tab

πŸ’¬ Content

chalybeum:

Is there a way to automaticaly pop up operator panel (F6) after calling a operator? Like having checker deselect in a pie and clicking on it automatically spawns F6. (Floating would be the cherry on the cake).

It depends on the operator.
For interactive operators (eg Translate operator) you need to create Macro operator with 2 slots and use it in your pie (Menu tab):

1st slot (Command tab): call the operator:

bpy.ops.mesh.primitive_plane_add()

2nd slot (Command tab): popup F6 panel:

bpy.ops.screen.redo_last()

For regular operators you can popup F6 panel right after calling the operator in Command tab:

bpy.ops.mesh.primitive_plane_add(True); bpy.ops.screen.redo_last('INVOKE_DEFAULT')

Note that when you use complex code in Command tab you need to set positional arguments manually:
The operator should be called with undo flag (True). Otherwise it won’t be available for F6 panel.
F6 panel should be executed in interactive mode (β€˜ INVOKE_DEFAULT ’).


πŸ”— View on Blender Artists