This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from bpy.props import * | |
bl_info = { | |
"name" : "My Properties", | |
"author" : "", | |
"version" : (0,1), | |
"blender" : (2, 77, 0), | |
"location" : "", | |
"description" : "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bl_space_type = "VIEW_3D" | |
bl_region_type = "TOOLS" | |
bl_category = "Tools" | |
bl_space_type = "VIEW_3D" | |
bl_region_type = "TOOL_PROPS" | |
bl_space_type = "VIEW_3D" | |
bl_region_type = "UI" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class UI(bpy.types.Panel): | |
bl_label = "my panel" | |
bl_space_type = "VIEW_3D" | |
bl_region_type = "UI" | |
#################################################################################################### | |
@classmethod | |
def poll(self, context): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class UI(bpy.types.Panel): | |
bl_label = "my panel" | |
bl_space_type = "VIEW_3D" | |
bl_region_type = "UI" | |
############################################# | |
def draw(self, context): | |
layout = self.layout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def draw(self, context): | |
layout = self.layout | |
row = layout.row(align=False) | |
row.alignment = 'LEFT' | |
row.operator("my.button", text="1") | |
row.operator("my.button", text="2") | |
row.operator("my.button", text="3") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def draw(self, context): | |
layout = self.layout | |
row = layout.row(align=False) | |
box = row.box() | |
box.operator("my.button", text="1") | |
box.operator("my.button", text="2") | |
box.operator("my.button", text="3") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def draw(self, context): | |
layout = self.layout | |
layout.label("label", icon='TEXT') | |
layout.operator("my.button", text="1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class UI(bpy.types.Panel): | |
bl_label = "my panel" | |
bl_space_type = "VIEW_3D" | |
bl_region_type = "UI" | |
def draw(self, context): | |
self.layout.operator("my.button") | |
OlderNewer