One can show the modifier stack inside the tool shelve. But would it be possible to show this inside a floating window?
F6 opens a window with options of the last command but the window always goes away.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityOne can show the modifier stack inside the tool shelve. But would it be possible to show this inside a floating window?
F6 opens a window with options of the last command but the window always goes away.
For a floating panel that stays in place you might want to read this question.
For something closer to the operator properties panel you could define a custom draw method to send to custom popup menu.
def draw_popup(self, context):
col = self.layout.column()
row = col.row()
row.label("Hello World")
row = col.row()
row.prop(context.scene.render, 'resolution_x')
class ShowPopupOperator(bpy.types.Operator):
bl_idname = "object.show_popup"
bl_label = "sample show popup"
def invoke(self, context, event):
context.window_manager.popup_menu(draw_popup, title='Test this', icon='INFO')
return {'FINISHED'}
To show the operator properties as shown in your question you can use the invoke_props_popup. To customise the display you give your operator a draw method.
class ShowPopupOperator(bpy.types.Operator):
bl_idname = "object.show_popup"
bl_label = "sample show popup"
bl_options = {'REGISTER','UNDO'}
prop1 = bpy.props.IntProperty()
prop2 = bpy.props.FloatProperty()
def invoke(self, context, event):
return context.window_manager.invoke_props_popup(self, event)
def execute(self, context):
# do stuff here
return {'FINISHED'}
def draw(self, context):
col = self.layout.column()
row = col.row()
row.label("Hello this the operator drawing")
row = col.row()
row.prop(self, 'prop1')
row = col.row()
row.prop(self, 'prop2')
The menu has a selection Duplicate Window
Duplicate the window.
Then design the layout of the new Window to have what ever you want. It can have 1, 2, N panels as you choose.
You may use the screen layout feature to name and manage your screen layouts.