I am trying to add a button on the tool panel for material which should open the material editor in a dialog box, which should be resizeable.
I can do the button but am having trouble creating the dialog box.
I tried to Do this by making duplicate window and dislplaying the properties editor in full screen but it takes up the whole screen.
I can make simple scripts in blender but don' know how to this.
Any help is much apreciated.
import bpy
from bpy.types import Header
bpy.ops.wm.window_duplicate()
bpy.ops.screen.screen_full_area()
bpy.context.area.type='PROPERTIES'