1
$\begingroup$

The redo last panel is one time at the bottom of the tool shelf. And you can also call it with F6.

I would love to display this panel in the Properties though. Which, in my opinion, makes much more sense. The redo last panel seems to be a menu, at least the version that can be called with F6. So I tried it with a simple layout.menu("SCREEN_OT_redo_last", text="none")

But that way I get a warning that the menu SCREEN_OT_redo_last does not exist.

So what would be the way to add the redo last panel to the Properties editor? Am I even at the right track?

import bpy

class ObjectPanel(bpy.types.Panel):
    bl_label = "Redo Last panel"
    bl_space_type = "PROPERTIES"
    bl_region_type = "WINDOW"
    bl_context = "render"

    def draw(self, context):
        layout = self.layout

        layout.menu("SCREEN_OT_redo_last", text="none")

bpy.utils.register_module(__name__)

I would love to display the Repeat Last Panel as shown here

$\endgroup$
3
  • 1
    $\begingroup$ Related blender.stackexchange.com/questions/41985/… SCREEN_OT == bpy.ops.screen. $\endgroup$
    – batFINGER
    Jul 11, 2016 at 4:52
  • $\begingroup$ Thx. But this just calls the popup again. Like with pressing F6. I would like to show the content in the panel. Not sure what SCREEN_OT == bpy.ops.screen should tell me. $\endgroup$
    – Tiles
    Jul 11, 2016 at 6:20
  • $\begingroup$ Solved by this script. It has some caveats though. The affected object does not update when i change a value here. Which is already another thread. See here: blender.stackexchange.com/questions/57700/… import bpy ... for element in bpy.context.window_manager.operators[-1].properties.keys(): column.prop(bpy.context.window_manager.operators[-1].properties, element) $\endgroup$
    – Tiles
    Jul 12, 2016 at 11:12

0

You must log in to answer this question.

Browse other questions tagged .