forked from bartvdbraak/blender
change blender python interface for classes not to ise __idname__ rather bl_idname since __somename__ is for pythons internal use.
replacements... "__idname__" -> "bl_idname" "__props__" -> "bl_props" "__label__" -> "bl_label" "__register__" -> "bl_register" "__undo__" -> "bl_undo" "__space_type__" -> "bl_space_type" "__default_closed__" -> "bl_default_closed" "__region_type__" -> "bl_region_type" "__context__" -> "bl_context" "__show_header__" -> "bl_show_header" "__URL__" -> "_url"
This commit is contained in:
parent
85eb9d6a2f
commit
ea265fc697
@ -49,11 +49,11 @@ def add_torus(PREF_MAJOR_RAD, PREF_MINOR_RAD, PREF_MAJOR_SEG, PREF_MINOR_SEG):
|
|||||||
|
|
||||||
class MESH_OT_primitive_torus_add(bpy.types.Operator):
|
class MESH_OT_primitive_torus_add(bpy.types.Operator):
|
||||||
'''Add a torus mesh.'''
|
'''Add a torus mesh.'''
|
||||||
__idname__ = "mesh.primitive_torus_add"
|
bl_idname = "mesh.primitive_torus_add"
|
||||||
__label__ = "Add Torus"
|
bl_label = "Add Torus"
|
||||||
__register__ = True
|
bl_register = True
|
||||||
__undo__ = True
|
bl_undo = True
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.FloatProperty(attr="major_radius", name="Major Radius", description="Number of segments for the main ring of the torus", default= 1.0, min= 0.01, max= 100.0),
|
bpy.props.FloatProperty(attr="major_radius", name="Major Radius", description="Number of segments for the main ring of the torus", default= 1.0, min= 0.01, max= 100.0),
|
||||||
bpy.props.FloatProperty(attr="minor_radius", name="Minor Radius", description="Number of segments for the minor ring of the torus", default= 0.25, min= 0.01, max= 100.0),
|
bpy.props.FloatProperty(attr="minor_radius", name="Minor Radius", description="Number of segments for the minor ring of the torus", default= 0.25, min= 0.01, max= 100.0),
|
||||||
bpy.props.IntProperty(attr="major_segments", name="Major Segments", description="Number of segments for the main ring of the torus", default= 48, min= 3, max= 256),
|
bpy.props.IntProperty(attr="major_segments", name="Major Segments", description="Number of segments for the main ring of the torus", default= 48, min= 3, max= 256),
|
||||||
|
@ -697,8 +697,8 @@ IntProperty( attr="pov_radio_recursion_limit",
|
|||||||
|
|
||||||
|
|
||||||
class PovrayRender(bpy.types.RenderEngine):
|
class PovrayRender(bpy.types.RenderEngine):
|
||||||
__idname__ = 'POVRAY_RENDER'
|
bl_idname = 'POVRAY_RENDER'
|
||||||
__label__ = "Povray"
|
bl_label = "Povray"
|
||||||
DELAY = 0.02
|
DELAY = 0.02
|
||||||
|
|
||||||
def _export(self, scene):
|
def _export(self, scene):
|
||||||
@ -850,9 +850,9 @@ for member in dir(buttons_material):
|
|||||||
del buttons_material
|
del buttons_material
|
||||||
|
|
||||||
class RenderButtonsPanel(bpy.types.Panel):
|
class RenderButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "render"
|
bl_context = "render"
|
||||||
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -860,7 +860,7 @@ class RenderButtonsPanel(bpy.types.Panel):
|
|||||||
return (rd.use_game_engine==False) and (rd.engine in self.COMPAT_ENGINES)
|
return (rd.use_game_engine==False) and (rd.engine in self.COMPAT_ENGINES)
|
||||||
|
|
||||||
class RENDER_PT_povray_radiosity(RenderButtonsPanel):
|
class RENDER_PT_povray_radiosity(RenderButtonsPanel):
|
||||||
__label__ = "Radiosity"
|
bl_label = "Radiosity"
|
||||||
COMPAT_ENGINES = set(['POVRAY_RENDER'])
|
COMPAT_ENGINES = set(['POVRAY_RENDER'])
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
|
@ -1093,13 +1093,13 @@ def save_3ds(filename, context):
|
|||||||
|
|
||||||
class EXPORT_OT_autodesk_3ds(bpy.types.Operator):
|
class EXPORT_OT_autodesk_3ds(bpy.types.Operator):
|
||||||
'''Export to 3DS file format (.3ds).'''
|
'''Export to 3DS file format (.3ds).'''
|
||||||
__idname__ = "export.autodesk_3ds"
|
bl_idname = "export.autodesk_3ds"
|
||||||
__label__ = 'Export 3DS'
|
bl_label = 'Export 3DS'
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = [
|
bl_props = [
|
||||||
# bpy.props.StringProperty(attr="filename", name="File Name", description="File name used for exporting the 3DS file", maxlen= 1024, default= ""),
|
# bpy.props.StringProperty(attr="filename", name="File Name", description="File name used for exporting the 3DS file", maxlen= 1024, default= ""),
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the 3DS file", maxlen= 1024, default= ""),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the 3DS file", maxlen= 1024, default= ""),
|
||||||
]
|
]
|
||||||
|
@ -3335,13 +3335,13 @@ def write_ui():
|
|||||||
|
|
||||||
class EXPORT_OT_fbx(bpy.types.Operator):
|
class EXPORT_OT_fbx(bpy.types.Operator):
|
||||||
'''Selection to an ASCII Autodesk FBX'''
|
'''Selection to an ASCII Autodesk FBX'''
|
||||||
__idname__ = "export.fbx"
|
bl_idname = "export.fbx"
|
||||||
__label__ = "Export FBX"
|
bl_label = "Export FBX"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the FBX file", maxlen= 1024, default= ""),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the FBX file", maxlen= 1024, default= ""),
|
||||||
|
|
||||||
bpy.props.BoolProperty(attr="EXP_OBS_SELECTED", name="Selected Objects", description="Export selected objects on visible layers", default=True),
|
bpy.props.BoolProperty(attr="EXP_OBS_SELECTED", name="Selected Objects", description="Export selected objects on visible layers", default=True),
|
||||||
|
@ -135,8 +135,8 @@ def write(filename, sce, ob, PREF_STARTFRAME, PREF_ENDFRAME, PREF_FPS):
|
|||||||
|
|
||||||
class EXPORT_OT_mdd(bpy.types.Operator):
|
class EXPORT_OT_mdd(bpy.types.Operator):
|
||||||
'''Animated mesh to MDD vertex keyframe file.'''
|
'''Animated mesh to MDD vertex keyframe file.'''
|
||||||
__idname__ = "export.mdd"
|
bl_idname = "export.mdd"
|
||||||
__label__ = "Export MDD"
|
bl_label = "Export MDD"
|
||||||
|
|
||||||
# get first scene to get min and max properties for frames, fps
|
# get first scene to get min and max properties for frames, fps
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ class EXPORT_OT_mdd(bpy.types.Operator):
|
|||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the MDD file", maxlen= 1024, default= "tmp.mdd"),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the MDD file", maxlen= 1024, default= "tmp.mdd"),
|
||||||
bpy.props.IntProperty(attr="fps", name="Frames Per Second", description="Number of frames/second", min=minfps, max=maxfps, default= 25),
|
bpy.props.IntProperty(attr="fps", name="Frames Per Second", description="Number of frames/second", min=minfps, max=maxfps, default= 25),
|
||||||
bpy.props.IntProperty(attr="start_frame", name="Start Frame", description="Start frame for baking", min=minframe,max=maxframe,default=1),
|
bpy.props.IntProperty(attr="start_frame", name="Start Frame", description="Start frame for baking", min=minframe,max=maxframe,default=1),
|
||||||
|
@ -916,13 +916,13 @@ Currently the exporter lacks these features:
|
|||||||
class EXPORT_OT_obj(bpy.types.Operator):
|
class EXPORT_OT_obj(bpy.types.Operator):
|
||||||
'''Save a Wavefront OBJ File'''
|
'''Save a Wavefront OBJ File'''
|
||||||
|
|
||||||
__idname__ = "export.obj"
|
bl_idname = "export.obj"
|
||||||
__label__ = 'Export OBJ'
|
bl_label = 'Export OBJ'
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the OBJ file", maxlen= 1024, default= ""),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the OBJ file", maxlen= 1024, default= ""),
|
||||||
|
|
||||||
# context group
|
# context group
|
||||||
|
@ -233,13 +233,13 @@ def write(filename, scene, ob, \
|
|||||||
|
|
||||||
class EXPORT_OT_ply(bpy.types.Operator):
|
class EXPORT_OT_ply(bpy.types.Operator):
|
||||||
'''Export a single object as a stanford PLY with normals, colours and texture coordinates.'''
|
'''Export a single object as a stanford PLY with normals, colours and texture coordinates.'''
|
||||||
__idname__ = "export.ply"
|
bl_idname = "export.ply"
|
||||||
__label__ = "Export PLY"
|
bl_label = "Export PLY"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""),
|
||||||
bpy.props.BoolProperty(attr="use_modifiers", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True),
|
bpy.props.BoolProperty(attr="use_modifiers", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True),
|
||||||
bpy.props.BoolProperty(attr="use_normals", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True),
|
bpy.props.BoolProperty(attr="use_normals", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True),
|
||||||
|
@ -1198,13 +1198,13 @@ def x3d_export_ui(filename):
|
|||||||
|
|
||||||
class EXPORT_OT_x3d(bpy.types.Operator):
|
class EXPORT_OT_x3d(bpy.types.Operator):
|
||||||
'''Export selection to Extensible 3D file (.x3d)'''
|
'''Export selection to Extensible 3D file (.x3d)'''
|
||||||
__idname__ = "export.x3d"
|
bl_idname = "export.x3d"
|
||||||
__label__ = 'Export X3D'
|
bl_label = 'Export X3D'
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the X3D file", maxlen= 1024, default= ""),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the X3D file", maxlen= 1024, default= ""),
|
||||||
|
|
||||||
bpy.props.BoolProperty(attr="apply_modifiers", name="Apply Modifiers", description="Use transformed mesh data from each object.", default=True),
|
bpy.props.BoolProperty(attr="apply_modifiers", name="Apply Modifiers", description="Use transformed mesh data from each object.", default=True),
|
||||||
|
@ -1124,13 +1124,13 @@ else:
|
|||||||
|
|
||||||
class IMPORT_OT_autodesk_3ds(bpy.types.Operator):
|
class IMPORT_OT_autodesk_3ds(bpy.types.Operator):
|
||||||
'''Import from 3DS file format (.3ds)'''
|
'''Import from 3DS file format (.3ds)'''
|
||||||
__idname__ = "import.autodesk_3ds"
|
bl_idname = "import.autodesk_3ds"
|
||||||
__label__ = 'Import 3DS'
|
bl_label = 'Import 3DS'
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for importing the 3DS file", maxlen= 1024, default= ""),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for importing the 3DS file", maxlen= 1024, default= ""),
|
||||||
|
|
||||||
# bpy.props.FloatProperty(attr="size_constraint", name="Size Constraint", description="Scale the model by 10 until it reacehs the size constraint. Zero Disables.", min=0.0, max=1000.0, soft_min=0.0, soft_max=1000.0, default=10.0),
|
# bpy.props.FloatProperty(attr="size_constraint", name="Size Constraint", description="Scale the model by 10 until it reacehs the size constraint. Zero Disables.", min=0.0, max=1000.0, soft_min=0.0, soft_max=1000.0, default=10.0),
|
||||||
|
@ -1555,13 +1555,13 @@ else:
|
|||||||
|
|
||||||
class IMPORT_OT_obj(bpy.types.Operator):
|
class IMPORT_OT_obj(bpy.types.Operator):
|
||||||
'''Load a Wavefront OBJ File.'''
|
'''Load a Wavefront OBJ File.'''
|
||||||
__idname__ = "import.obj"
|
bl_idname = "import.obj"
|
||||||
__label__ = "Import OBJ"
|
bl_label = "Import OBJ"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for importing the OBJ file", maxlen= 1024, default= ""),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for importing the OBJ file", maxlen= 1024, default= ""),
|
||||||
|
|
||||||
bpy.props.BoolProperty(attr="CREATE_SMOOTH_GROUPS", name="Smooth Groups", description="Surround smooth groups by sharp edges", default= True),
|
bpy.props.BoolProperty(attr="CREATE_SMOOTH_GROUPS", name="Smooth Groups", description="Surround smooth groups by sharp edges", default= True),
|
||||||
|
@ -620,13 +620,13 @@ def main(context):
|
|||||||
class MESH_OT_skin(bpy.types.Operator):
|
class MESH_OT_skin(bpy.types.Operator):
|
||||||
'''Bridge face loops.'''
|
'''Bridge face loops.'''
|
||||||
|
|
||||||
__idname__ = "mesh.skin"
|
bl_idname = "mesh.skin"
|
||||||
__label__ = "Add Torus"
|
bl_label = "Add Torus"
|
||||||
__register__ = True
|
bl_register = True
|
||||||
__undo__ = True
|
bl_undo = True
|
||||||
|
|
||||||
'''
|
'''
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.EnumProperty(attr="loft_method", items=[(), ()], description="", default= True),
|
bpy.props.EnumProperty(attr="loft_method", items=[(), ()], description="", default= True),
|
||||||
]
|
]
|
||||||
'''
|
'''
|
||||||
|
@ -159,8 +159,8 @@ def requestResult(conn, job_id, frame):
|
|||||||
|
|
||||||
@rnaType
|
@rnaType
|
||||||
class NetworkRenderEngine(bpy.types.RenderEngine):
|
class NetworkRenderEngine(bpy.types.RenderEngine):
|
||||||
__idname__ = 'NET_RENDER'
|
bl_idname = 'NET_RENDER'
|
||||||
__label__ = "Network Render"
|
bl_label = "Network Render"
|
||||||
def render(self, scene):
|
def render(self, scene):
|
||||||
if scene.network_render.mode == "RENDER_CLIENT":
|
if scene.network_render.mode == "RENDER_CLIENT":
|
||||||
self.render_client(scene)
|
self.render_client(scene)
|
||||||
|
@ -10,13 +10,13 @@ import netrender.model
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class RENDER_OT_netclientanim(bpy.types.Operator):
|
class RENDER_OT_netclientanim(bpy.types.Operator):
|
||||||
'''Start rendering an animation on network'''
|
'''Start rendering an animation on network'''
|
||||||
__idname__ = "render.netclientanim"
|
bl_idname = "render.netclientanim"
|
||||||
__label__ = "Animation on network"
|
bl_label = "Animation on network"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
@ -41,13 +41,13 @@ class RENDER_OT_netclientanim(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class RENDER_OT_netclientsend(bpy.types.Operator):
|
class RENDER_OT_netclientsend(bpy.types.Operator):
|
||||||
'''Send Render Job to the Network'''
|
'''Send Render Job to the Network'''
|
||||||
__idname__ = "render.netclientsend"
|
bl_idname = "render.netclientsend"
|
||||||
__label__ = "Send job"
|
bl_label = "Send job"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
@ -70,13 +70,13 @@ class RENDER_OT_netclientsend(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class RENDER_OT_netclientstatus(bpy.types.Operator):
|
class RENDER_OT_netclientstatus(bpy.types.Operator):
|
||||||
'''Refresh the status of the current jobs'''
|
'''Refresh the status of the current jobs'''
|
||||||
__idname__ = "render.netclientstatus"
|
bl_idname = "render.netclientstatus"
|
||||||
__label__ = "Client Status"
|
bl_label = "Client Status"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
@ -115,13 +115,13 @@ class RENDER_OT_netclientstatus(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class RENDER_OT_netclientblacklistslave(bpy.types.Operator):
|
class RENDER_OT_netclientblacklistslave(bpy.types.Operator):
|
||||||
'''Operator documentation text, will be used for the operator tooltip and python docs.'''
|
'''Operator documentation text, will be used for the operator tooltip and python docs.'''
|
||||||
__idname__ = "render.netclientblacklistslave"
|
bl_idname = "render.netclientblacklistslave"
|
||||||
__label__ = "Client Blacklist Slave"
|
bl_label = "Client Blacklist Slave"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
@ -150,13 +150,13 @@ class RENDER_OT_netclientblacklistslave(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class RENDER_OT_netclientwhitelistslave(bpy.types.Operator):
|
class RENDER_OT_netclientwhitelistslave(bpy.types.Operator):
|
||||||
'''Operator documentation text, will be used for the operator tooltip and python docs.'''
|
'''Operator documentation text, will be used for the operator tooltip and python docs.'''
|
||||||
__idname__ = "render.netclientwhitelistslave"
|
bl_idname = "render.netclientwhitelistslave"
|
||||||
__label__ = "Client Whitelist Slave"
|
bl_label = "Client Whitelist Slave"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
@ -186,13 +186,13 @@ class RENDER_OT_netclientwhitelistslave(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class RENDER_OT_netclientslaves(bpy.types.Operator):
|
class RENDER_OT_netclientslaves(bpy.types.Operator):
|
||||||
'''Refresh status about available Render slaves'''
|
'''Refresh status about available Render slaves'''
|
||||||
__idname__ = "render.netclientslaves"
|
bl_idname = "render.netclientslaves"
|
||||||
__label__ = "Client Slaves"
|
bl_label = "Client Slaves"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
@ -236,13 +236,13 @@ class RENDER_OT_netclientslaves(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class RENDER_OT_netclientcancel(bpy.types.Operator):
|
class RENDER_OT_netclientcancel(bpy.types.Operator):
|
||||||
'''Cancel the selected network rendering job.'''
|
'''Cancel the selected network rendering job.'''
|
||||||
__idname__ = "render.netclientcancel"
|
bl_idname = "render.netclientcancel"
|
||||||
__label__ = "Client Cancel"
|
bl_label = "Client Cancel"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
netsettings = context.scene.network_render
|
netsettings = context.scene.network_render
|
||||||
@ -270,13 +270,13 @@ class RENDER_OT_netclientcancel(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class RENDER_OT_netclientcancelall(bpy.types.Operator):
|
class RENDER_OT_netclientcancelall(bpy.types.Operator):
|
||||||
'''Cancel all running network rendering jobs.'''
|
'''Cancel all running network rendering jobs.'''
|
||||||
__idname__ = "render.netclientcancelall"
|
bl_idname = "render.netclientcancelall"
|
||||||
__label__ = "Client Cancel All"
|
bl_label = "Client Cancel All"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
@ -302,13 +302,13 @@ class RENDER_OT_netclientcancelall(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class netclientdownload(bpy.types.Operator):
|
class netclientdownload(bpy.types.Operator):
|
||||||
'''Download render results from the network'''
|
'''Download render results from the network'''
|
||||||
__idname__ = "render.netclientdownload"
|
bl_idname = "render.netclientdownload"
|
||||||
__label__ = "Client Download"
|
bl_label = "Client Download"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
netsettings = context.scene.network_render
|
netsettings = context.scene.network_render
|
||||||
@ -352,13 +352,13 @@ class netclientdownload(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class netclientscan(bpy.types.Operator):
|
class netclientscan(bpy.types.Operator):
|
||||||
'''Operator documentation text, will be used for the operator tooltip and python docs.'''
|
'''Operator documentation text, will be used for the operator tooltip and python docs.'''
|
||||||
__idname__ = "render.netclientscan"
|
bl_idname = "render.netclientscan"
|
||||||
__label__ = "Client Scan"
|
bl_label = "Client Scan"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
@ -390,13 +390,13 @@ class netclientscan(bpy.types.Operator):
|
|||||||
@rnaOperator
|
@rnaOperator
|
||||||
class netclientweb(bpy.types.Operator):
|
class netclientweb(bpy.types.Operator):
|
||||||
'''Open new window with information about running rendering jobs'''
|
'''Open new window with information about running rendering jobs'''
|
||||||
__idname__ = "render.netclientweb"
|
bl_idname = "render.netclientweb"
|
||||||
__label__ = "Open Master Monitor"
|
bl_label = "Open Master Monitor"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
__props__ = []
|
bl_props = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return True
|
return True
|
||||||
|
@ -18,9 +18,9 @@ DONE = 2
|
|||||||
ERROR = 3
|
ERROR = 3
|
||||||
|
|
||||||
class RenderButtonsPanel(bpy.types.Panel):
|
class RenderButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = "PROPERTIES"
|
bl_space_type = "PROPERTIES"
|
||||||
__region_type__ = "WINDOW"
|
bl_region_type = "WINDOW"
|
||||||
__context__ = "render"
|
bl_context = "render"
|
||||||
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -30,7 +30,7 @@ class RenderButtonsPanel(bpy.types.Panel):
|
|||||||
# Setting panel, use in the scene for now.
|
# Setting panel, use in the scene for now.
|
||||||
@rnaType
|
@rnaType
|
||||||
class RENDER_PT_network_settings(RenderButtonsPanel):
|
class RENDER_PT_network_settings(RenderButtonsPanel):
|
||||||
__label__ = "Network Settings"
|
bl_label = "Network Settings"
|
||||||
COMPAT_ENGINES = set(['NET_RENDER'])
|
COMPAT_ENGINES = set(['NET_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -56,7 +56,7 @@ class RENDER_PT_network_settings(RenderButtonsPanel):
|
|||||||
|
|
||||||
@rnaType
|
@rnaType
|
||||||
class RENDER_PT_network_job(RenderButtonsPanel):
|
class RENDER_PT_network_job(RenderButtonsPanel):
|
||||||
__label__ = "Job Settings"
|
bl_label = "Job Settings"
|
||||||
COMPAT_ENGINES = set(['NET_RENDER'])
|
COMPAT_ENGINES = set(['NET_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -84,7 +84,7 @@ class RENDER_PT_network_job(RenderButtonsPanel):
|
|||||||
|
|
||||||
@rnaType
|
@rnaType
|
||||||
class RENDER_PT_network_slaves(RenderButtonsPanel):
|
class RENDER_PT_network_slaves(RenderButtonsPanel):
|
||||||
__label__ = "Slaves Status"
|
bl_label = "Slaves Status"
|
||||||
COMPAT_ENGINES = set(['NET_RENDER'])
|
COMPAT_ENGINES = set(['NET_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -120,7 +120,7 @@ class RENDER_PT_network_slaves(RenderButtonsPanel):
|
|||||||
|
|
||||||
@rnaType
|
@rnaType
|
||||||
class RENDER_PT_network_slaves_blacklist(RenderButtonsPanel):
|
class RENDER_PT_network_slaves_blacklist(RenderButtonsPanel):
|
||||||
__label__ = "Slaves Blacklist"
|
bl_label = "Slaves Blacklist"
|
||||||
COMPAT_ENGINES = set(['NET_RENDER'])
|
COMPAT_ENGINES = set(['NET_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -155,7 +155,7 @@ class RENDER_PT_network_slaves_blacklist(RenderButtonsPanel):
|
|||||||
|
|
||||||
@rnaType
|
@rnaType
|
||||||
class RENDER_PT_network_jobs(RenderButtonsPanel):
|
class RENDER_PT_network_jobs(RenderButtonsPanel):
|
||||||
__label__ = "Jobs"
|
bl_label = "Jobs"
|
||||||
COMPAT_ENGINES = set(['NET_RENDER'])
|
COMPAT_ENGINES = set(['NET_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
|
@ -151,7 +151,7 @@ class bpy_ops_submodule_op(object):
|
|||||||
|
|
||||||
def get_rna(self):
|
def get_rna(self):
|
||||||
'''
|
'''
|
||||||
currently only used for '__rna__'
|
currently only used for 'bl_rna'
|
||||||
'''
|
'''
|
||||||
return op_get_rna(self.idname())
|
return op_get_rna(self.idname())
|
||||||
|
|
||||||
@ -173,8 +173,8 @@ from bpy.props import *
|
|||||||
class MESH_OT_delete_edgeloop(bpy.types.Operator):
|
class MESH_OT_delete_edgeloop(bpy.types.Operator):
|
||||||
'''Export a single object as a stanford PLY with normals,
|
'''Export a single object as a stanford PLY with normals,
|
||||||
colours and texture coordinates.'''
|
colours and texture coordinates.'''
|
||||||
__idname__ = "mesh.delete_edgeloop"
|
bl_idname = "mesh.delete_edgeloop"
|
||||||
__label__ = "Delete Edge Loop"
|
bl_label = "Delete Edge Loop"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
bpy.ops.tfm.edge_slide(value=1.0)
|
bpy.ops.tfm.edge_slide(value=1.0)
|
||||||
@ -218,9 +218,9 @@ def execute_context_assign(self, context):
|
|||||||
|
|
||||||
class WM_OT_context_set_boolean(bpy.types.Operator):
|
class WM_OT_context_set_boolean(bpy.types.Operator):
|
||||||
'''Set a context value.'''
|
'''Set a context value.'''
|
||||||
__idname__ = "wm.context_set_boolean"
|
bl_idname = "wm.context_set_boolean"
|
||||||
__label__ = "Context Set"
|
bl_label = "Context Set"
|
||||||
__props__ = [
|
bl_props = [
|
||||||
rna_path_prop,
|
rna_path_prop,
|
||||||
BoolProperty(attr="value", name="Value",
|
BoolProperty(attr="value", name="Value",
|
||||||
description="Assignment value", default=True)]
|
description="Assignment value", default=True)]
|
||||||
@ -230,9 +230,9 @@ class WM_OT_context_set_boolean(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_context_set_int(bpy.types.Operator): # same as enum
|
class WM_OT_context_set_int(bpy.types.Operator): # same as enum
|
||||||
'''Set a context value.'''
|
'''Set a context value.'''
|
||||||
__idname__ = "wm.context_set_int"
|
bl_idname = "wm.context_set_int"
|
||||||
__label__ = "Context Set"
|
bl_label = "Context Set"
|
||||||
__props__ = [
|
bl_props = [
|
||||||
rna_path_prop,
|
rna_path_prop,
|
||||||
IntProperty(attr="value", name="Value",
|
IntProperty(attr="value", name="Value",
|
||||||
description="Assignment value", default=0)]
|
description="Assignment value", default=0)]
|
||||||
@ -241,9 +241,9 @@ class WM_OT_context_set_int(bpy.types.Operator): # same as enum
|
|||||||
|
|
||||||
class WM_OT_context_set_float(bpy.types.Operator): # same as enum
|
class WM_OT_context_set_float(bpy.types.Operator): # same as enum
|
||||||
'''Set a context value.'''
|
'''Set a context value.'''
|
||||||
__idname__ = "wm.context_set_int"
|
bl_idname = "wm.context_set_int"
|
||||||
__label__ = "Context Set"
|
bl_label = "Context Set"
|
||||||
__props__ = [
|
bl_props = [
|
||||||
rna_path_prop,
|
rna_path_prop,
|
||||||
FloatProperty(attr="value", name="Value",
|
FloatProperty(attr="value", name="Value",
|
||||||
description="Assignment value", default=0.0)]
|
description="Assignment value", default=0.0)]
|
||||||
@ -252,9 +252,9 @@ class WM_OT_context_set_float(bpy.types.Operator): # same as enum
|
|||||||
|
|
||||||
class WM_OT_context_set_string(bpy.types.Operator): # same as enum
|
class WM_OT_context_set_string(bpy.types.Operator): # same as enum
|
||||||
'''Set a context value.'''
|
'''Set a context value.'''
|
||||||
__idname__ = "wm.context_set_string"
|
bl_idname = "wm.context_set_string"
|
||||||
__label__ = "Context Set"
|
bl_label = "Context Set"
|
||||||
__props__ = [
|
bl_props = [
|
||||||
rna_path_prop,
|
rna_path_prop,
|
||||||
StringProperty(attr="value", name="Value",
|
StringProperty(attr="value", name="Value",
|
||||||
description="Assignment value", maxlen=1024, default="")]
|
description="Assignment value", maxlen=1024, default="")]
|
||||||
@ -264,9 +264,9 @@ class WM_OT_context_set_string(bpy.types.Operator): # same as enum
|
|||||||
|
|
||||||
class WM_OT_context_set_enum(bpy.types.Operator):
|
class WM_OT_context_set_enum(bpy.types.Operator):
|
||||||
'''Set a context value.'''
|
'''Set a context value.'''
|
||||||
__idname__ = "wm.context_set_enum"
|
bl_idname = "wm.context_set_enum"
|
||||||
__label__ = "Context Set"
|
bl_label = "Context Set"
|
||||||
__props__ = [
|
bl_props = [
|
||||||
rna_path_prop,
|
rna_path_prop,
|
||||||
StringProperty(attr="value", name="Value",
|
StringProperty(attr="value", name="Value",
|
||||||
description="Assignment value (as a string)",
|
description="Assignment value (as a string)",
|
||||||
@ -277,9 +277,9 @@ class WM_OT_context_set_enum(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_context_toggle(bpy.types.Operator):
|
class WM_OT_context_toggle(bpy.types.Operator):
|
||||||
'''Toggle a context value.'''
|
'''Toggle a context value.'''
|
||||||
__idname__ = "wm.context_toggle"
|
bl_idname = "wm.context_toggle"
|
||||||
__label__ = "Context Toggle"
|
bl_label = "Context Toggle"
|
||||||
__props__ = [rna_path_prop]
|
bl_props = [rna_path_prop]
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
|
||||||
@ -292,9 +292,9 @@ class WM_OT_context_toggle(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_context_toggle_enum(bpy.types.Operator):
|
class WM_OT_context_toggle_enum(bpy.types.Operator):
|
||||||
'''Toggle a context value.'''
|
'''Toggle a context value.'''
|
||||||
__idname__ = "wm.context_toggle_enum"
|
bl_idname = "wm.context_toggle_enum"
|
||||||
__label__ = "Context Toggle Values"
|
bl_label = "Context Toggle Values"
|
||||||
__props__ = [
|
bl_props = [
|
||||||
rna_path_prop,
|
rna_path_prop,
|
||||||
StringProperty(attr="value_1", name="Value", \
|
StringProperty(attr="value_1", name="Value", \
|
||||||
description="Toggle enum", maxlen=1024, default=""),
|
description="Toggle enum", maxlen=1024, default=""),
|
||||||
@ -316,9 +316,9 @@ class WM_OT_context_toggle_enum(bpy.types.Operator):
|
|||||||
class WM_OT_context_cycle_int(bpy.types.Operator):
|
class WM_OT_context_cycle_int(bpy.types.Operator):
|
||||||
'''Set a context value. Useful for cycling active material,
|
'''Set a context value. Useful for cycling active material,
|
||||||
vertex keys, groups' etc.'''
|
vertex keys, groups' etc.'''
|
||||||
__idname__ = "wm.context_cycle_int"
|
bl_idname = "wm.context_cycle_int"
|
||||||
__label__ = "Context Int Cycle"
|
bl_label = "Context Int Cycle"
|
||||||
__props__ = [rna_path_prop, rna_reverse_prop]
|
bl_props = [rna_path_prop, rna_reverse_prop]
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
|
||||||
@ -346,9 +346,9 @@ class WM_OT_context_cycle_int(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_context_cycle_enum(bpy.types.Operator):
|
class WM_OT_context_cycle_enum(bpy.types.Operator):
|
||||||
'''Toggle a context value.'''
|
'''Toggle a context value.'''
|
||||||
__idname__ = "wm.context_cycle_enum"
|
bl_idname = "wm.context_cycle_enum"
|
||||||
__label__ = "Context Enum Cycle"
|
bl_label = "Context Enum Cycle"
|
||||||
__props__ = [rna_path_prop, rna_reverse_prop]
|
bl_props = [rna_path_prop, rna_reverse_prop]
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
|
||||||
@ -401,14 +401,14 @@ doc_new = StringProperty(attr="doc_new", name="Doc New",
|
|||||||
|
|
||||||
class WM_OT_doc_view(bpy.types.Operator):
|
class WM_OT_doc_view(bpy.types.Operator):
|
||||||
'''Load online reference docs'''
|
'''Load online reference docs'''
|
||||||
__idname__ = "wm.doc_view"
|
bl_idname = "wm.doc_view"
|
||||||
__label__ = "View Documentation"
|
bl_label = "View Documentation"
|
||||||
__props__ = [doc_id]
|
bl_props = [doc_id]
|
||||||
_prefix = 'http://www.blender.org/documentation/250PythonDoc'
|
_prefix = 'http://www.blender.org/documentation/250PythonDoc'
|
||||||
|
|
||||||
def _nested_class_string(self, class_string):
|
def _nested_class_string(self, class_string):
|
||||||
ls = []
|
ls = []
|
||||||
class_obj = getattr(bpy.types, class_string, None).__rna__
|
class_obj = getattr(bpy.types, class_string, None).bl_rna
|
||||||
while class_obj:
|
while class_obj:
|
||||||
ls.insert(0, class_obj)
|
ls.insert(0, class_obj)
|
||||||
class_obj = class_obj.nested
|
class_obj = class_obj.nested
|
||||||
@ -442,9 +442,9 @@ class WM_OT_doc_view(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_doc_edit(bpy.types.Operator):
|
class WM_OT_doc_edit(bpy.types.Operator):
|
||||||
'''Load online reference docs'''
|
'''Load online reference docs'''
|
||||||
__idname__ = "wm.doc_edit"
|
bl_idname = "wm.doc_edit"
|
||||||
__label__ = "Edit Documentation"
|
bl_label = "Edit Documentation"
|
||||||
__props__ = [doc_id, doc_new]
|
bl_props = [doc_id, doc_new]
|
||||||
_url = "http://www.mindrones.com/blender/svn/xmlrpc.php"
|
_url = "http://www.mindrones.com/blender/svn/xmlrpc.php"
|
||||||
|
|
||||||
def _send_xmlrpc(self, data_dict):
|
def _send_xmlrpc(self, data_dict):
|
||||||
@ -472,7 +472,7 @@ class WM_OT_doc_edit(bpy.types.Operator):
|
|||||||
upload = {}
|
upload = {}
|
||||||
|
|
||||||
if op_class:
|
if op_class:
|
||||||
rna = op_class.__rna__
|
rna = op_class.bl_rna
|
||||||
doc_orig = rna.description
|
doc_orig = rna.description
|
||||||
if doc_orig == self.doc_new:
|
if doc_orig == self.doc_new:
|
||||||
return 'OPERATOR_CANCELLED'
|
return 'OPERATOR_CANCELLED'
|
||||||
@ -484,7 +484,7 @@ class WM_OT_doc_edit(bpy.types.Operator):
|
|||||||
self._send_xmlrpc(upload)
|
self._send_xmlrpc(upload)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
rna = getattr(bpy.types, class_name).__rna__
|
rna = getattr(bpy.types, class_name).bl_rna
|
||||||
doc_orig = rna.properties[class_prop].description
|
doc_orig = rna.properties[class_prop].description
|
||||||
if doc_orig == self.doc_new:
|
if doc_orig == self.doc_new:
|
||||||
return 'OPERATOR_CANCELLED'
|
return 'OPERATOR_CANCELLED'
|
||||||
|
@ -3,14 +3,14 @@ def write_some_data(context, path, use_some_setting):
|
|||||||
|
|
||||||
class ExportSomeData(bpy.types.Operator):
|
class ExportSomeData(bpy.types.Operator):
|
||||||
'''This appiers in the tooltip of the operator and in the generated docs.'''
|
'''This appiers in the tooltip of the operator and in the generated docs.'''
|
||||||
__idname__ = "export.some_data" # this is important since its how bpy.ops.export.some_data is constructed
|
bl_idname = "export.some_data" # this is important since its how bpy.ops.export.some_data is constructed
|
||||||
__label__ = "Export Some Data"
|
bl_label = "Export Some Data"
|
||||||
|
|
||||||
# List of operator properties, the attributes will be assigned
|
# List of operator properties, the attributes will be assigned
|
||||||
# to the class instance from the operator settings before calling.
|
# to the class instance from the operator settings before calling.
|
||||||
|
|
||||||
# TODO, add better example props
|
# TODO, add better example props
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""),
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""),
|
||||||
bpy.props.BoolProperty(attr="use_some_setting", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True),
|
bpy.props.BoolProperty(attr="use_some_setting", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True),
|
||||||
]
|
]
|
||||||
|
@ -4,8 +4,8 @@ def main(context):
|
|||||||
|
|
||||||
class SimpleOperator(bpy.types.Operator):
|
class SimpleOperator(bpy.types.Operator):
|
||||||
''''''
|
''''''
|
||||||
__idname__ = "object.simple_operator"
|
bl_idname = "object.simple_operator"
|
||||||
__label__ = "Simple Object Operator"
|
bl_label = "Simple Object Operator"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.active_object != None
|
return context.active_object != None
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.armature
|
return context.armature
|
||||||
|
|
||||||
class DATA_PT_context_arm(DataButtonsPanel):
|
class DATA_PT_context_arm(DataButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -29,7 +29,7 @@ class DATA_PT_context_arm(DataButtonsPanel):
|
|||||||
split.itemS()
|
split.itemS()
|
||||||
|
|
||||||
class DATA_PT_skeleton(DataButtonsPanel):
|
class DATA_PT_skeleton(DataButtonsPanel):
|
||||||
__label__ = "Skeleton"
|
bl_label = "Skeleton"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -56,7 +56,7 @@ class DATA_PT_skeleton(DataButtonsPanel):
|
|||||||
col.itemR(arm, "deform_bbone_rest", text="B-Bones Rest")
|
col.itemR(arm, "deform_bbone_rest", text="B-Bones Rest")
|
||||||
|
|
||||||
class DATA_PT_display(DataButtonsPanel):
|
class DATA_PT_display(DataButtonsPanel):
|
||||||
__label__ = "Display"
|
bl_label = "Display"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -73,7 +73,7 @@ class DATA_PT_display(DataButtonsPanel):
|
|||||||
flow.itemR(arm, "delay_deform", text="Delay Refresh")
|
flow.itemR(arm, "delay_deform", text="Delay Refresh")
|
||||||
|
|
||||||
class DATA_PT_bone_groups(DataButtonsPanel):
|
class DATA_PT_bone_groups(DataButtonsPanel):
|
||||||
__label__ = "Bone Groups"
|
bl_label = "Bone Groups"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.object and context.object.type=='ARMATURE' and context.object.pose)
|
return (context.object and context.object.type=='ARMATURE' and context.object.pose)
|
||||||
@ -113,7 +113,7 @@ class DATA_PT_bone_groups(DataButtonsPanel):
|
|||||||
#row.itemO("object.bone_group_deselect", text="Deselect")
|
#row.itemO("object.bone_group_deselect", text="Deselect")
|
||||||
|
|
||||||
class DATA_PT_paths(DataButtonsPanel):
|
class DATA_PT_paths(DataButtonsPanel):
|
||||||
__label__ = "Paths"
|
bl_label = "Paths"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -149,7 +149,7 @@ class DATA_PT_paths(DataButtonsPanel):
|
|||||||
row.itemO("pose.paths_clear", text="Clear Paths")
|
row.itemO("pose.paths_clear", text="Clear Paths")
|
||||||
|
|
||||||
class DATA_PT_ghost(DataButtonsPanel):
|
class DATA_PT_ghost(DataButtonsPanel):
|
||||||
__label__ = "Ghost"
|
bl_label = "Ghost"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class BoneButtonsPanel(bpy.types.Panel):
|
class BoneButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "bone"
|
bl_context = "bone"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.bone or context.edit_bone)
|
return (context.bone or context.edit_bone)
|
||||||
|
|
||||||
class BONE_PT_context_bone(BoneButtonsPanel):
|
class BONE_PT_context_bone(BoneButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -24,7 +24,7 @@ class BONE_PT_context_bone(BoneButtonsPanel):
|
|||||||
row.itemR(bone, "name", text="")
|
row.itemR(bone, "name", text="")
|
||||||
|
|
||||||
class BONE_PT_transform(BoneButtonsPanel):
|
class BONE_PT_transform(BoneButtonsPanel):
|
||||||
__label__ = "Transform"
|
bl_label = "Transform"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -69,8 +69,8 @@ class BONE_PT_transform(BoneButtonsPanel):
|
|||||||
layout.itemR(pchan, "rotation_mode")
|
layout.itemR(pchan, "rotation_mode")
|
||||||
|
|
||||||
class BONE_PT_transform_locks(BoneButtonsPanel):
|
class BONE_PT_transform_locks(BoneButtonsPanel):
|
||||||
__label__ = "Transform Locks"
|
bl_label = "Transform Locks"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.bone
|
return context.bone
|
||||||
@ -99,7 +99,7 @@ class BONE_PT_transform_locks(BoneButtonsPanel):
|
|||||||
row.column().itemR(pchan, "lock_scale")
|
row.column().itemR(pchan, "lock_scale")
|
||||||
|
|
||||||
class BONE_PT_relations(BoneButtonsPanel):
|
class BONE_PT_relations(BoneButtonsPanel):
|
||||||
__label__ = "Relations"
|
bl_label = "Relations"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -140,7 +140,7 @@ class BONE_PT_relations(BoneButtonsPanel):
|
|||||||
sub.itemR(bone, "inherit_scale", text="Inherit Scale")
|
sub.itemR(bone, "inherit_scale", text="Inherit Scale")
|
||||||
|
|
||||||
class BONE_PT_display(BoneButtonsPanel):
|
class BONE_PT_display(BoneButtonsPanel):
|
||||||
__label__ = "Display"
|
bl_label = "Display"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.bone
|
return context.bone
|
||||||
@ -173,8 +173,8 @@ class BONE_PT_display(BoneButtonsPanel):
|
|||||||
col.itemR(pchan, "custom_shape", text="")
|
col.itemR(pchan, "custom_shape", text="")
|
||||||
|
|
||||||
class BONE_PT_deform(BoneButtonsPanel):
|
class BONE_PT_deform(BoneButtonsPanel):
|
||||||
__label__ = "Deform"
|
bl_label = "Deform"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
bone = context.bone
|
bone = context.bone
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.camera
|
return context.camera
|
||||||
|
|
||||||
class DATA_PT_context_camera(DataButtonsPanel):
|
class DATA_PT_context_camera(DataButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -29,7 +29,7 @@ class DATA_PT_context_camera(DataButtonsPanel):
|
|||||||
split.itemS()
|
split.itemS()
|
||||||
|
|
||||||
class DATA_PT_camera(DataButtonsPanel):
|
class DATA_PT_camera(DataButtonsPanel):
|
||||||
__label__ = "Lens"
|
bl_label = "Lens"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -70,7 +70,7 @@ class DATA_PT_camera(DataButtonsPanel):
|
|||||||
row.itemR(cam, "dof_distance", text="Distance")
|
row.itemR(cam, "dof_distance", text="Distance")
|
||||||
|
|
||||||
class DATA_PT_camera_display(DataButtonsPanel):
|
class DATA_PT_camera_display(DataButtonsPanel):
|
||||||
__label__ = "Display"
|
bl_label = "Display"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.object and context.object.type in ('CURVE', 'SURFACE') and context.curve)
|
return (context.object and context.object.type in ('CURVE', 'SURFACE') and context.curve)
|
||||||
@ -25,7 +25,7 @@ class DataButtonsPanelActive(DataButtonsPanel):
|
|||||||
return (curve and curve.active_spline)
|
return (curve and curve.active_spline)
|
||||||
|
|
||||||
class DATA_PT_context_curve(DataButtonsPanel):
|
class DATA_PT_context_curve(DataButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -44,7 +44,7 @@ class DATA_PT_context_curve(DataButtonsPanel):
|
|||||||
split.itemS()
|
split.itemS()
|
||||||
|
|
||||||
class DATA_PT_shape_curve(DataButtonsPanel):
|
class DATA_PT_shape_curve(DataButtonsPanel):
|
||||||
__label__ = "Shape"
|
bl_label = "Shape"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -96,7 +96,7 @@ class DATA_PT_shape_curve(DataButtonsPanel):
|
|||||||
# col.itemR(curve, "vertex_normal_flip")
|
# col.itemR(curve, "vertex_normal_flip")
|
||||||
|
|
||||||
class DATA_PT_geometry_curve(DataButtonsPanel):
|
class DATA_PT_geometry_curve(DataButtonsPanel):
|
||||||
__label__ = "Geometry"
|
bl_label = "Geometry"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -120,7 +120,7 @@ class DATA_PT_geometry_curve(DataButtonsPanel):
|
|||||||
col.itemR(curve, "bevel_object", text="")
|
col.itemR(curve, "bevel_object", text="")
|
||||||
|
|
||||||
class DATA_PT_pathanim(DataButtonsPanelCurve):
|
class DATA_PT_pathanim(DataButtonsPanelCurve):
|
||||||
__label__ = "Path Animation"
|
bl_label = "Path Animation"
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
curve = context.curve
|
curve = context.curve
|
||||||
@ -146,7 +146,7 @@ class DATA_PT_pathanim(DataButtonsPanelCurve):
|
|||||||
col.itemR(curve, "use_time_offset", text="Offset Children")
|
col.itemR(curve, "use_time_offset", text="Offset Children")
|
||||||
|
|
||||||
class DATA_PT_active_spline(DataButtonsPanelActive):
|
class DATA_PT_active_spline(DataButtonsPanelActive):
|
||||||
__label__ = "Active Spline"
|
bl_label = "Active Spline"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.object and context.object.type == 'EMPTY')
|
return (context.object and context.object.type == 'EMPTY')
|
||||||
|
|
||||||
class DATA_PT_empty(DataButtonsPanel):
|
class DATA_PT_empty(DataButtonsPanel):
|
||||||
__label__ = "Empty"
|
bl_label = "Empty"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,21 +2,21 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.lamp
|
return context.lamp
|
||||||
|
|
||||||
class DATA_PT_preview(DataButtonsPanel):
|
class DATA_PT_preview(DataButtonsPanel):
|
||||||
__label__ = "Preview"
|
bl_label = "Preview"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
self.layout.template_preview(context.lamp)
|
self.layout.template_preview(context.lamp)
|
||||||
|
|
||||||
class DATA_PT_context_lamp(DataButtonsPanel):
|
class DATA_PT_context_lamp(DataButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -35,7 +35,7 @@ class DATA_PT_context_lamp(DataButtonsPanel):
|
|||||||
split.itemS()
|
split.itemS()
|
||||||
|
|
||||||
class DATA_PT_lamp(DataButtonsPanel):
|
class DATA_PT_lamp(DataButtonsPanel):
|
||||||
__label__ = "Lamp"
|
bl_label = "Lamp"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -75,7 +75,7 @@ class DATA_PT_lamp(DataButtonsPanel):
|
|||||||
col.itemR(lamp, "diffuse")
|
col.itemR(lamp, "diffuse")
|
||||||
|
|
||||||
class DATA_PT_sunsky(DataButtonsPanel):
|
class DATA_PT_sunsky(DataButtonsPanel):
|
||||||
__label__ = "Sky & Atmosphere"
|
bl_label = "Sky & Atmosphere"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
lamp = context.lamp
|
lamp = context.lamp
|
||||||
@ -139,7 +139,7 @@ class DATA_PT_sunsky(DataButtonsPanel):
|
|||||||
sub.itemR(lamp, "atmosphere_extinction", slider=True ,text="Extinction")
|
sub.itemR(lamp, "atmosphere_extinction", slider=True ,text="Extinction")
|
||||||
|
|
||||||
class DATA_PT_shadow(DataButtonsPanel):
|
class DATA_PT_shadow(DataButtonsPanel):
|
||||||
__label__ = "Shadow"
|
bl_label = "Shadow"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
lamp = context.lamp
|
lamp = context.lamp
|
||||||
@ -237,7 +237,7 @@ class DATA_PT_shadow(DataButtonsPanel):
|
|||||||
sub.itemR(lamp, "shadow_buffer_clip_end", text=" Clip End")
|
sub.itemR(lamp, "shadow_buffer_clip_end", text=" Clip End")
|
||||||
|
|
||||||
class DATA_PT_area(DataButtonsPanel):
|
class DATA_PT_area(DataButtonsPanel):
|
||||||
__label__ = "Area Shape"
|
bl_label = "Area Shape"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
lamp = context.lamp
|
lamp = context.lamp
|
||||||
@ -261,7 +261,7 @@ class DATA_PT_area(DataButtonsPanel):
|
|||||||
sub.itemR(lamp, "size_y", text="Size Y")
|
sub.itemR(lamp, "size_y", text="Size Y")
|
||||||
|
|
||||||
class DATA_PT_spot(DataButtonsPanel):
|
class DATA_PT_spot(DataButtonsPanel):
|
||||||
__label__ = "Spot Shape"
|
bl_label = "Spot Shape"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
lamp = context.lamp
|
lamp = context.lamp
|
||||||
@ -289,8 +289,8 @@ class DATA_PT_spot(DataButtonsPanel):
|
|||||||
sub.itemR(lamp, "halo_step", text="Step")
|
sub.itemR(lamp, "halo_step", text="Step")
|
||||||
|
|
||||||
class DATA_PT_falloff_curve(DataButtonsPanel):
|
class DATA_PT_falloff_curve(DataButtonsPanel):
|
||||||
__label__ = "Falloff Curve"
|
bl_label = "Falloff Curve"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
lamp = context.lamp
|
lamp = context.lamp
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.lattice
|
return context.lattice
|
||||||
|
|
||||||
class DATA_PT_context_lattice(DataButtonsPanel):
|
class DATA_PT_context_lattice(DataButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -29,7 +29,7 @@ class DATA_PT_context_lattice(DataButtonsPanel):
|
|||||||
split.itemS()
|
split.itemS()
|
||||||
|
|
||||||
class DATA_PT_lattice(DataButtonsPanel):
|
class DATA_PT_lattice(DataButtonsPanel):
|
||||||
__label__ = "Lattice"
|
bl_label = "Lattice"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.mesh
|
return context.mesh
|
||||||
|
|
||||||
class DATA_PT_context_mesh(DataButtonsPanel):
|
class DATA_PT_context_mesh(DataButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -29,7 +29,7 @@ class DATA_PT_context_mesh(DataButtonsPanel):
|
|||||||
split.itemS()
|
split.itemS()
|
||||||
|
|
||||||
class DATA_PT_normals(DataButtonsPanel):
|
class DATA_PT_normals(DataButtonsPanel):
|
||||||
__label__ = "Normals"
|
bl_label = "Normals"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -49,7 +49,7 @@ class DATA_PT_normals(DataButtonsPanel):
|
|||||||
col.itemR(mesh, "double_sided")
|
col.itemR(mesh, "double_sided")
|
||||||
|
|
||||||
class DATA_PT_settings(DataButtonsPanel):
|
class DATA_PT_settings(DataButtonsPanel):
|
||||||
__label__ = "Settings"
|
bl_label = "Settings"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -62,7 +62,7 @@ class DATA_PT_settings(DataButtonsPanel):
|
|||||||
col.itemR(mesh, "texture_mesh")
|
col.itemR(mesh, "texture_mesh")
|
||||||
|
|
||||||
class DATA_PT_vertex_groups(DataButtonsPanel):
|
class DATA_PT_vertex_groups(DataButtonsPanel):
|
||||||
__label__ = "Vertex Groups"
|
bl_label = "Vertex Groups"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.object and context.object.type in ('MESH', 'LATTICE'))
|
return (context.object and context.object.type in ('MESH', 'LATTICE'))
|
||||||
@ -106,7 +106,7 @@ class DATA_PT_vertex_groups(DataButtonsPanel):
|
|||||||
layout.itemR(context.tool_settings, "vertex_group_weight", text="Weight")
|
layout.itemR(context.tool_settings, "vertex_group_weight", text="Weight")
|
||||||
|
|
||||||
class DATA_PT_shape_keys(DataButtonsPanel):
|
class DATA_PT_shape_keys(DataButtonsPanel):
|
||||||
__label__ = "Shape Keys"
|
bl_label = "Shape Keys"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.object and context.object.type in ('MESH', 'LATTICE', 'CURVE', 'SURFACE'))
|
return (context.object and context.object.type in ('MESH', 'LATTICE', 'CURVE', 'SURFACE'))
|
||||||
@ -191,7 +191,7 @@ class DATA_PT_shape_keys(DataButtonsPanel):
|
|||||||
row.itemR(key, "slurph")
|
row.itemR(key, "slurph")
|
||||||
|
|
||||||
class DATA_PT_uv_texture(DataButtonsPanel):
|
class DATA_PT_uv_texture(DataButtonsPanel):
|
||||||
__label__ = "UV Texture"
|
bl_label = "UV Texture"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -212,7 +212,7 @@ class DATA_PT_uv_texture(DataButtonsPanel):
|
|||||||
layout.itemR(lay, "name")
|
layout.itemR(lay, "name")
|
||||||
|
|
||||||
class DATA_PT_vertex_colors(DataButtonsPanel):
|
class DATA_PT_vertex_colors(DataButtonsPanel):
|
||||||
__label__ = "Vertex Colors"
|
bl_label = "Vertex Colors"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.meta_ball
|
return context.meta_ball
|
||||||
|
|
||||||
class DATA_PT_context_metaball(DataButtonsPanel):
|
class DATA_PT_context_metaball(DataButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -28,7 +28,7 @@ class DATA_PT_context_metaball(DataButtonsPanel):
|
|||||||
split.itemS()
|
split.itemS()
|
||||||
|
|
||||||
class DATA_PT_metaball(DataButtonsPanel):
|
class DATA_PT_metaball(DataButtonsPanel):
|
||||||
__label__ = "Metaball"
|
bl_label = "Metaball"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -51,7 +51,7 @@ class DATA_PT_metaball(DataButtonsPanel):
|
|||||||
layout.itemR(mball, "flag", expand=True)
|
layout.itemR(mball, "flag", expand=True)
|
||||||
|
|
||||||
class DATA_PT_metaball_element(DataButtonsPanel):
|
class DATA_PT_metaball_element(DataButtonsPanel):
|
||||||
__label__ = "Active Element"
|
bl_label = "Active Element"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.meta_ball and context.meta_ball.active_element)
|
return (context.meta_ball and context.meta_ball.active_element)
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "modifier"
|
bl_context = "modifier"
|
||||||
|
|
||||||
class DATA_PT_modifiers(DataButtonsPanel):
|
class DATA_PT_modifiers(DataButtonsPanel):
|
||||||
__label__ = "Modifiers"
|
bl_label = "Modifiers"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class DataButtonsPanel(bpy.types.Panel):
|
class DataButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "data"
|
bl_context = "data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.object and context.object.type == 'TEXT' and context.curve)
|
return (context.object and context.object.type == 'TEXT' and context.curve)
|
||||||
|
|
||||||
class DATA_PT_context_text(DataButtonsPanel):
|
class DATA_PT_context_text(DataButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -29,7 +29,7 @@ class DATA_PT_context_text(DataButtonsPanel):
|
|||||||
split.itemS()
|
split.itemS()
|
||||||
|
|
||||||
class DATA_PT_shape_text(DataButtonsPanel):
|
class DATA_PT_shape_text(DataButtonsPanel):
|
||||||
__label__ = "Shape Text"
|
bl_label = "Shape Text"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -63,7 +63,7 @@ class DATA_PT_shape_text(DataButtonsPanel):
|
|||||||
col.itemR(curve, "fast", text="Fast Editing")
|
col.itemR(curve, "fast", text="Fast Editing")
|
||||||
|
|
||||||
class DATA_PT_geometry_text(DataButtonsPanel):
|
class DATA_PT_geometry_text(DataButtonsPanel):
|
||||||
__label__ = "Geometry"
|
bl_label = "Geometry"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -87,7 +87,7 @@ class DATA_PT_geometry_text(DataButtonsPanel):
|
|||||||
col.itemR(curve, "bevel_object", text="")
|
col.itemR(curve, "bevel_object", text="")
|
||||||
|
|
||||||
class DATA_PT_font(DataButtonsPanel):
|
class DATA_PT_font(DataButtonsPanel):
|
||||||
__label__ = "Font"
|
bl_label = "Font"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -127,7 +127,7 @@ class DATA_PT_font(DataButtonsPanel):
|
|||||||
col.itemR(text, "ul_height", text="Thickness")
|
col.itemR(text, "ul_height", text="Thickness")
|
||||||
|
|
||||||
class DATA_PT_paragraph(DataButtonsPanel):
|
class DATA_PT_paragraph(DataButtonsPanel):
|
||||||
__label__ = "Paragraph"
|
bl_label = "Paragraph"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -151,7 +151,7 @@ class DATA_PT_paragraph(DataButtonsPanel):
|
|||||||
col.itemR(text, "offset_y", text="Y")
|
col.itemR(text, "offset_y", text="Y")
|
||||||
|
|
||||||
class DATA_PT_textboxes(DataButtonsPanel):
|
class DATA_PT_textboxes(DataButtonsPanel):
|
||||||
__label__ = "Text Boxes"
|
bl_label = "Text Boxes"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class PhysicsButtonsPanel(bpy.types.Panel):
|
class PhysicsButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "physics"
|
bl_context = "physics"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.active_object
|
ob = context.active_object
|
||||||
@ -12,7 +12,7 @@ class PhysicsButtonsPanel(bpy.types.Panel):
|
|||||||
return ob and ob.game and (rd.engine == 'BLENDER_GAME')
|
return ob and ob.game and (rd.engine == 'BLENDER_GAME')
|
||||||
|
|
||||||
class PHYSICS_PT_game_physics(PhysicsButtonsPanel):
|
class PHYSICS_PT_game_physics(PhysicsButtonsPanel):
|
||||||
__label__ = "Physics"
|
bl_label = "Physics"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -131,7 +131,7 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel):
|
|||||||
layout.itemR(ob, "restrict_render", text="Invisible")
|
layout.itemR(ob, "restrict_render", text="Invisible")
|
||||||
|
|
||||||
class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel):
|
class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel):
|
||||||
__label__ = "Collision Bounds"
|
bl_label = "Collision Bounds"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
game = context.object.game
|
game = context.object.game
|
||||||
@ -159,16 +159,16 @@ bpy.types.register(PHYSICS_PT_game_physics)
|
|||||||
bpy.types.register(PHYSICS_PT_game_collision_bounds)
|
bpy.types.register(PHYSICS_PT_game_collision_bounds)
|
||||||
|
|
||||||
class RenderButtonsPanel(bpy.types.Panel):
|
class RenderButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "render"
|
bl_context = "render"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
rd = context.scene.render_data
|
rd = context.scene.render_data
|
||||||
return (rd.engine == 'BLENDER_GAME')
|
return (rd.engine == 'BLENDER_GAME')
|
||||||
|
|
||||||
class RENDER_PT_game(RenderButtonsPanel):
|
class RENDER_PT_game(RenderButtonsPanel):
|
||||||
__label__ = "Game"
|
bl_label = "Game"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -178,7 +178,7 @@ class RENDER_PT_game(RenderButtonsPanel):
|
|||||||
row.itemL()
|
row.itemL()
|
||||||
|
|
||||||
class RENDER_PT_game_player(RenderButtonsPanel):
|
class RENDER_PT_game_player(RenderButtonsPanel):
|
||||||
__label__ = "Standalone Player"
|
bl_label = "Standalone Player"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -209,7 +209,7 @@ class RENDER_PT_game_player(RenderButtonsPanel):
|
|||||||
col.itemR(gs, "framing_color", text="")
|
col.itemR(gs, "framing_color", text="")
|
||||||
|
|
||||||
class RENDER_PT_game_stereo(RenderButtonsPanel):
|
class RENDER_PT_game_stereo(RenderButtonsPanel):
|
||||||
__label__ = "Stereo"
|
bl_label = "Stereo"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -258,7 +258,7 @@ class RENDER_PT_game_stereo(RenderButtonsPanel):
|
|||||||
layout.itemR(gs, "dome_text")
|
layout.itemR(gs, "dome_text")
|
||||||
|
|
||||||
class RENDER_PT_game_shading(RenderButtonsPanel):
|
class RENDER_PT_game_shading(RenderButtonsPanel):
|
||||||
__label__ = "Shading"
|
bl_label = "Shading"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -280,7 +280,7 @@ class RENDER_PT_game_shading(RenderButtonsPanel):
|
|||||||
col.itemR(gs, "glsl_extra_textures", text="Extra Textures")
|
col.itemR(gs, "glsl_extra_textures", text="Extra Textures")
|
||||||
|
|
||||||
class RENDER_PT_game_performance(RenderButtonsPanel):
|
class RENDER_PT_game_performance(RenderButtonsPanel):
|
||||||
__label__ = "Performance"
|
bl_label = "Performance"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -302,7 +302,7 @@ class RENDER_PT_game_performance(RenderButtonsPanel):
|
|||||||
col.itemR(gs, "display_lists")
|
col.itemR(gs, "display_lists")
|
||||||
|
|
||||||
class RENDER_PT_game_sound(RenderButtonsPanel):
|
class RENDER_PT_game_sound(RenderButtonsPanel):
|
||||||
__label__ = "Sound"
|
bl_label = "Sound"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -321,16 +321,16 @@ bpy.types.register(RENDER_PT_game_performance)
|
|||||||
bpy.types.register(RENDER_PT_game_sound)
|
bpy.types.register(RENDER_PT_game_sound)
|
||||||
|
|
||||||
class WorldButtonsPanel(bpy.types.Panel):
|
class WorldButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "world"
|
bl_context = "world"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
rd = context.scene.render_data
|
rd = context.scene.render_data
|
||||||
return (rd.engine == 'BLENDER_GAME')
|
return (rd.engine == 'BLENDER_GAME')
|
||||||
|
|
||||||
class WORLD_PT_game_context_world(WorldButtonsPanel):
|
class WORLD_PT_game_context_world(WorldButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
rd = context.scene.render_data
|
rd = context.scene.render_data
|
||||||
@ -351,7 +351,7 @@ class WORLD_PT_game_context_world(WorldButtonsPanel):
|
|||||||
split.template_ID(space, "pin_id")
|
split.template_ID(space, "pin_id")
|
||||||
|
|
||||||
class WORLD_PT_game_world(WorldButtonsPanel):
|
class WORLD_PT_game_world(WorldButtonsPanel):
|
||||||
__label__ = "World"
|
bl_label = "World"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -370,7 +370,7 @@ class WORLD_PT_game_world(WorldButtonsPanel):
|
|||||||
row.itemR(world.mist, "depth")
|
row.itemR(world.mist, "depth")
|
||||||
|
|
||||||
class WORLD_PT_game_physics(WorldButtonsPanel):
|
class WORLD_PT_game_physics(WorldButtonsPanel):
|
||||||
__label__ = "Physics"
|
bl_label = "Physics"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -14,9 +14,9 @@ def active_node_mat(mat):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
class MaterialButtonsPanel(bpy.types.Panel):
|
class MaterialButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "material"
|
bl_context = "material"
|
||||||
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -25,14 +25,14 @@ class MaterialButtonsPanel(bpy.types.Panel):
|
|||||||
return mat and (engine in self.COMPAT_ENGINES)
|
return mat and (engine in self.COMPAT_ENGINES)
|
||||||
|
|
||||||
class MATERIAL_PT_preview(MaterialButtonsPanel):
|
class MATERIAL_PT_preview(MaterialButtonsPanel):
|
||||||
__label__ = "Preview"
|
bl_label = "Preview"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
self.layout.template_preview(context.material)
|
self.layout.template_preview(context.material)
|
||||||
|
|
||||||
class MATERIAL_PT_context_material(MaterialButtonsPanel):
|
class MATERIAL_PT_context_material(MaterialButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -83,7 +83,7 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel):
|
|||||||
layout.itemR(mat, "type", expand=True)
|
layout.itemR(mat, "type", expand=True)
|
||||||
|
|
||||||
class MATERIAL_PT_shading(MaterialButtonsPanel):
|
class MATERIAL_PT_shading(MaterialButtonsPanel):
|
||||||
__label__ = "Shading"
|
bl_label = "Shading"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -118,8 +118,8 @@ class MATERIAL_PT_shading(MaterialButtonsPanel):
|
|||||||
layout.itemR(mat, "alpha")
|
layout.itemR(mat, "alpha")
|
||||||
|
|
||||||
class MATERIAL_PT_strand(MaterialButtonsPanel):
|
class MATERIAL_PT_strand(MaterialButtonsPanel):
|
||||||
__label__ = "Strand"
|
bl_label = "Strand"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -161,7 +161,7 @@ class MATERIAL_PT_strand(MaterialButtonsPanel):
|
|||||||
sub.itemR(tan, "blend_distance", text="Distance")
|
sub.itemR(tan, "blend_distance", text="Distance")
|
||||||
|
|
||||||
class MATERIAL_PT_physics(MaterialButtonsPanel):
|
class MATERIAL_PT_physics(MaterialButtonsPanel):
|
||||||
__label__ = "Physics"
|
bl_label = "Physics"
|
||||||
COMPAT_ENGINES = set(['BLENDER_GAME'])
|
COMPAT_ENGINES = set(['BLENDER_GAME'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -182,7 +182,7 @@ class MATERIAL_PT_physics(MaterialButtonsPanel):
|
|||||||
col.itemR(phys, "damp", slider=True)
|
col.itemR(phys, "damp", slider=True)
|
||||||
|
|
||||||
class MATERIAL_PT_options(MaterialButtonsPanel):
|
class MATERIAL_PT_options(MaterialButtonsPanel):
|
||||||
__label__ = "Options"
|
bl_label = "Options"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -224,8 +224,8 @@ class MATERIAL_PT_options(MaterialButtonsPanel):
|
|||||||
col.itemR(mat, "object_color")
|
col.itemR(mat, "object_color")
|
||||||
|
|
||||||
class MATERIAL_PT_shadow(MaterialButtonsPanel):
|
class MATERIAL_PT_shadow(MaterialButtonsPanel):
|
||||||
__label__ = "Shadow"
|
bl_label = "Shadow"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -258,7 +258,7 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel):
|
|||||||
sub.itemR(mat, "shadow_ray_bias", text="Ray Bias")
|
sub.itemR(mat, "shadow_ray_bias", text="Ray Bias")
|
||||||
|
|
||||||
class MATERIAL_PT_diffuse(MaterialButtonsPanel):
|
class MATERIAL_PT_diffuse(MaterialButtonsPanel):
|
||||||
__label__ = "Diffuse"
|
bl_label = "Diffuse"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -314,7 +314,7 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel):
|
|||||||
row.itemR(mat, "diffuse_ramp_factor", text="Factor")
|
row.itemR(mat, "diffuse_ramp_factor", text="Factor")
|
||||||
|
|
||||||
class MATERIAL_PT_specular(MaterialButtonsPanel):
|
class MATERIAL_PT_specular(MaterialButtonsPanel):
|
||||||
__label__ = "Specular"
|
bl_label = "Specular"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER', 'BLENDER_GAME'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -368,8 +368,8 @@ class MATERIAL_PT_specular(MaterialButtonsPanel):
|
|||||||
row.itemR(mat, "specular_ramp_factor", text="Factor")
|
row.itemR(mat, "specular_ramp_factor", text="Factor")
|
||||||
|
|
||||||
class MATERIAL_PT_sss(MaterialButtonsPanel):
|
class MATERIAL_PT_sss(MaterialButtonsPanel):
|
||||||
__label__ = "Subsurface Scattering"
|
bl_label = "Subsurface Scattering"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -413,8 +413,8 @@ class MATERIAL_PT_sss(MaterialButtonsPanel):
|
|||||||
col.itemR(sss, "error_tolerance", text="Error")
|
col.itemR(sss, "error_tolerance", text="Error")
|
||||||
|
|
||||||
class MATERIAL_PT_mirror(MaterialButtonsPanel):
|
class MATERIAL_PT_mirror(MaterialButtonsPanel):
|
||||||
__label__ = "Mirror"
|
bl_label = "Mirror"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -468,8 +468,8 @@ class MATERIAL_PT_mirror(MaterialButtonsPanel):
|
|||||||
sub.itemR(raym, "gloss_anisotropic", text="Anisotropic")
|
sub.itemR(raym, "gloss_anisotropic", text="Anisotropic")
|
||||||
|
|
||||||
class MATERIAL_PT_transp(MaterialButtonsPanel):
|
class MATERIAL_PT_transp(MaterialButtonsPanel):
|
||||||
__label__= "Transparency"
|
bl_label= "Transparency"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -528,7 +528,7 @@ class MATERIAL_PT_transp(MaterialButtonsPanel):
|
|||||||
sub.itemR(rayt, "gloss_samples", text="Samples")
|
sub.itemR(rayt, "gloss_samples", text="Samples")
|
||||||
|
|
||||||
class MATERIAL_PT_halo(MaterialButtonsPanel):
|
class MATERIAL_PT_halo(MaterialButtonsPanel):
|
||||||
__label__= "Halo"
|
bl_label= "Halo"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -575,7 +575,7 @@ class MATERIAL_PT_halo(MaterialButtonsPanel):
|
|||||||
sub.itemR(halo, "star_tips")
|
sub.itemR(halo, "star_tips")
|
||||||
|
|
||||||
class MATERIAL_PT_flare(MaterialButtonsPanel):
|
class MATERIAL_PT_flare(MaterialButtonsPanel):
|
||||||
__label__= "Flare"
|
bl_label= "Flare"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -623,9 +623,9 @@ bpy.types.register(MATERIAL_PT_shadow)
|
|||||||
|
|
||||||
# Volumetrics
|
# Volumetrics
|
||||||
class VolumeButtonsPanel(bpy.types.Panel):
|
class VolumeButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "material"
|
bl_context = "material"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
mat = context.material
|
mat = context.material
|
||||||
@ -633,8 +633,8 @@ class VolumeButtonsPanel(bpy.types.Panel):
|
|||||||
return mat and (mat.type == 'VOLUME') and (engine in self.COMPAT_ENGINES)
|
return mat and (mat.type == 'VOLUME') and (engine in self.COMPAT_ENGINES)
|
||||||
|
|
||||||
class MATERIAL_PT_volume_density(VolumeButtonsPanel):
|
class MATERIAL_PT_volume_density(VolumeButtonsPanel):
|
||||||
__label__ = "Density"
|
bl_label = "Density"
|
||||||
__default_closed__ = False
|
bl_default_closed = False
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -648,8 +648,8 @@ class MATERIAL_PT_volume_density(VolumeButtonsPanel):
|
|||||||
row.itemR(vol, "density_scale")
|
row.itemR(vol, "density_scale")
|
||||||
|
|
||||||
class MATERIAL_PT_volume_shading(VolumeButtonsPanel):
|
class MATERIAL_PT_volume_shading(VolumeButtonsPanel):
|
||||||
__label__ = "Shading"
|
bl_label = "Shading"
|
||||||
__default_closed__ = False
|
bl_default_closed = False
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -673,8 +673,8 @@ class MATERIAL_PT_volume_shading(VolumeButtonsPanel):
|
|||||||
sub.itemR(vol, "reflection_color", text="")
|
sub.itemR(vol, "reflection_color", text="")
|
||||||
|
|
||||||
class MATERIAL_PT_volume_lighting(VolumeButtonsPanel):
|
class MATERIAL_PT_volume_lighting(VolumeButtonsPanel):
|
||||||
__label__ = "Lighting"
|
bl_label = "Lighting"
|
||||||
__default_closed__ = False
|
bl_default_closed = False
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -708,7 +708,7 @@ class MATERIAL_PT_volume_lighting(VolumeButtonsPanel):
|
|||||||
sub.itemR(vol, "ms_intensity")
|
sub.itemR(vol, "ms_intensity")
|
||||||
|
|
||||||
class MATERIAL_PT_volume_transp(VolumeButtonsPanel):
|
class MATERIAL_PT_volume_transp(VolumeButtonsPanel):
|
||||||
__label__= "Transparency"
|
bl_label= "Transparency"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -719,8 +719,8 @@ class MATERIAL_PT_volume_transp(VolumeButtonsPanel):
|
|||||||
layout.itemR(mat, "transparency_method", expand=True)
|
layout.itemR(mat, "transparency_method", expand=True)
|
||||||
|
|
||||||
class MATERIAL_PT_volume_integration(VolumeButtonsPanel):
|
class MATERIAL_PT_volume_integration(VolumeButtonsPanel):
|
||||||
__label__ = "Integration"
|
bl_label = "Integration"
|
||||||
__default_closed__ = False
|
bl_default_closed = False
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class ObjectButtonsPanel(bpy.types.Panel):
|
class ObjectButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "object"
|
bl_context = "object"
|
||||||
|
|
||||||
class OBJECT_PT_context_object(ObjectButtonsPanel):
|
class OBJECT_PT_context_object(ObjectButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -19,7 +19,7 @@ class OBJECT_PT_context_object(ObjectButtonsPanel):
|
|||||||
row.itemR(ob, "name", text="")
|
row.itemR(ob, "name", text="")
|
||||||
|
|
||||||
class OBJECT_PT_transform(ObjectButtonsPanel):
|
class OBJECT_PT_transform(ObjectButtonsPanel):
|
||||||
__label__ = "Transform"
|
bl_label = "Transform"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -44,8 +44,8 @@ class OBJECT_PT_transform(ObjectButtonsPanel):
|
|||||||
layout.itemR(ob, "rotation_mode")
|
layout.itemR(ob, "rotation_mode")
|
||||||
|
|
||||||
class OBJECT_PT_transform_locks(ObjectButtonsPanel):
|
class OBJECT_PT_transform_locks(ObjectButtonsPanel):
|
||||||
__label__ = "Transform Locks"
|
bl_label = "Transform Locks"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -69,7 +69,7 @@ class OBJECT_PT_transform_locks(ObjectButtonsPanel):
|
|||||||
row.column().itemR(ob, "lock_scale")
|
row.column().itemR(ob, "lock_scale")
|
||||||
|
|
||||||
class OBJECT_PT_relations(ObjectButtonsPanel):
|
class OBJECT_PT_relations(ObjectButtonsPanel):
|
||||||
__label__ = "Relations"
|
bl_label = "Relations"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -97,7 +97,7 @@ class OBJECT_PT_relations(ObjectButtonsPanel):
|
|||||||
sub.active = parent != None
|
sub.active = parent != None
|
||||||
|
|
||||||
class OBJECT_PT_groups(ObjectButtonsPanel):
|
class OBJECT_PT_groups(ObjectButtonsPanel):
|
||||||
__label__ = "Groups"
|
bl_label = "Groups"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -123,7 +123,7 @@ class OBJECT_PT_groups(ObjectButtonsPanel):
|
|||||||
split.column().itemR(group, "dupli_offset", text="")
|
split.column().itemR(group, "dupli_offset", text="")
|
||||||
|
|
||||||
class OBJECT_PT_display(ObjectButtonsPanel):
|
class OBJECT_PT_display(ObjectButtonsPanel):
|
||||||
__label__ = "Display"
|
bl_label = "Display"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -149,7 +149,7 @@ class OBJECT_PT_display(ObjectButtonsPanel):
|
|||||||
flow.itemR(ob, "draw_transparent", text="Transparency")
|
flow.itemR(ob, "draw_transparent", text="Transparency")
|
||||||
|
|
||||||
class OBJECT_PT_duplication(ObjectButtonsPanel):
|
class OBJECT_PT_duplication(ObjectButtonsPanel):
|
||||||
__label__ = "Duplication"
|
bl_label = "Duplication"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -183,7 +183,7 @@ class OBJECT_PT_duplication(ObjectButtonsPanel):
|
|||||||
layout.itemR(ob, "dupli_group", text="Group")
|
layout.itemR(ob, "dupli_group", text="Group")
|
||||||
|
|
||||||
class OBJECT_PT_animation(ObjectButtonsPanel):
|
class OBJECT_PT_animation(ObjectButtonsPanel):
|
||||||
__label__ = "Animation"
|
bl_label = "Animation"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class ConstraintButtonsPanel(bpy.types.Panel):
|
class ConstraintButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "constraint"
|
bl_context = "constraint"
|
||||||
|
|
||||||
def draw_constraint(self, context, con):
|
def draw_constraint(self, context, con):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -577,8 +577,8 @@ class ConstraintButtonsPanel(bpy.types.Panel):
|
|||||||
row.itemR(con, "track", expand=True)
|
row.itemR(con, "track", expand=True)
|
||||||
|
|
||||||
class OBJECT_PT_constraints(ConstraintButtonsPanel):
|
class OBJECT_PT_constraints(ConstraintButtonsPanel):
|
||||||
__label__ = "Constraints"
|
bl_label = "Constraints"
|
||||||
__context__ = "constraint"
|
bl_context = "constraint"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.object)
|
return (context.object)
|
||||||
@ -595,9 +595,9 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel):
|
|||||||
self.draw_constraint(context, con)
|
self.draw_constraint(context, con)
|
||||||
|
|
||||||
class BONE_PT_inverse_kinematics(ConstraintButtonsPanel):
|
class BONE_PT_inverse_kinematics(ConstraintButtonsPanel):
|
||||||
__label__ = "Inverse Kinematics"
|
bl_label = "Inverse Kinematics"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
__context__ = "bone_constraint"
|
bl_context = "bone_constraint"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.object
|
ob = context.object
|
||||||
@ -677,9 +677,9 @@ class BONE_PT_inverse_kinematics(ConstraintButtonsPanel):
|
|||||||
#row.itemR(pchan, "ik_lin_weight", text="Weight", slider=True)
|
#row.itemR(pchan, "ik_lin_weight", text="Weight", slider=True)
|
||||||
|
|
||||||
class BONE_PT_iksolver_itasc(ConstraintButtonsPanel):
|
class BONE_PT_iksolver_itasc(ConstraintButtonsPanel):
|
||||||
__label__ = "iTaSC parameters"
|
bl_label = "iTaSC parameters"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
__context__ = "bone_constraint"
|
bl_context = "bone_constraint"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.object
|
ob = context.object
|
||||||
@ -727,8 +727,8 @@ class BONE_PT_iksolver_itasc(ConstraintButtonsPanel):
|
|||||||
row.itemR(itasc, "dampeps", text="Eps", slider=True)
|
row.itemR(itasc, "dampeps", text="Eps", slider=True)
|
||||||
|
|
||||||
class BONE_PT_constraints(ConstraintButtonsPanel):
|
class BONE_PT_constraints(ConstraintButtonsPanel):
|
||||||
__label__ = "Constraints"
|
bl_label = "Constraints"
|
||||||
__context__ = "bone_constraint"
|
bl_context = "bone_constraint"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.object
|
ob = context.object
|
||||||
|
@ -16,15 +16,15 @@ def particle_panel_poll(context):
|
|||||||
return psys.settings.type in ('EMITTER', 'REACTOR', 'HAIR')
|
return psys.settings.type in ('EMITTER', 'REACTOR', 'HAIR')
|
||||||
|
|
||||||
class ParticleButtonsPanel(bpy.types.Panel):
|
class ParticleButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "particle"
|
bl_context = "particle"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return particle_panel_poll(context)
|
return particle_panel_poll(context)
|
||||||
|
|
||||||
class PARTICLE_PT_particles(ParticleButtonsPanel):
|
class PARTICLE_PT_particles(ParticleButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.particle_system or context.object)
|
return (context.particle_system or context.object)
|
||||||
@ -105,7 +105,7 @@ class PARTICLE_PT_particles(ParticleButtonsPanel):
|
|||||||
split.itemR(psys, "reactor_target_particle_system", text="Particle System")
|
split.itemR(psys, "reactor_target_particle_system", text="Particle System")
|
||||||
|
|
||||||
class PARTICLE_PT_emission(ParticleButtonsPanel):
|
class PARTICLE_PT_emission(ParticleButtonsPanel):
|
||||||
__label__ = "Emission"
|
bl_label = "Emission"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if particle_panel_poll(context):
|
if particle_panel_poll(context):
|
||||||
@ -158,8 +158,8 @@ class PARTICLE_PT_emission(ParticleButtonsPanel):
|
|||||||
row.itemR(part, "grid_resolution")
|
row.itemR(part, "grid_resolution")
|
||||||
|
|
||||||
class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel):
|
class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel):
|
||||||
__label__ = "Hair dynamics"
|
bl_label = "Hair dynamics"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
psys = context.particle_system
|
psys = context.particle_system
|
||||||
@ -205,8 +205,8 @@ class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel):
|
|||||||
col.itemR(cloth, "quality", text="Steps",slider=True)
|
col.itemR(cloth, "quality", text="Steps",slider=True)
|
||||||
|
|
||||||
class PARTICLE_PT_cache(ParticleButtonsPanel):
|
class PARTICLE_PT_cache(ParticleButtonsPanel):
|
||||||
__label__ = "Cache"
|
bl_label = "Cache"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
psys = context.particle_system
|
psys = context.particle_system
|
||||||
@ -225,7 +225,7 @@ class PARTICLE_PT_cache(ParticleButtonsPanel):
|
|||||||
point_cache_ui(self, psys.point_cache, particle_panel_enabled(context, psys), not psys.hair_dynamics, 0)
|
point_cache_ui(self, psys.point_cache, particle_panel_enabled(context, psys), not psys.hair_dynamics, 0)
|
||||||
|
|
||||||
class PARTICLE_PT_velocity(ParticleButtonsPanel):
|
class PARTICLE_PT_velocity(ParticleButtonsPanel):
|
||||||
__label__ = "Velocity"
|
bl_label = "Velocity"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if particle_panel_poll(context):
|
if particle_panel_poll(context):
|
||||||
@ -270,7 +270,7 @@ class PARTICLE_PT_velocity(ParticleButtonsPanel):
|
|||||||
# sub.itemR(part, "reaction_shape", slider=True)
|
# sub.itemR(part, "reaction_shape", slider=True)
|
||||||
|
|
||||||
class PARTICLE_PT_rotation(ParticleButtonsPanel):
|
class PARTICLE_PT_rotation(ParticleButtonsPanel):
|
||||||
__label__ = "Rotation"
|
bl_label = "Rotation"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if particle_panel_poll(context):
|
if particle_panel_poll(context):
|
||||||
@ -309,7 +309,7 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel):
|
|||||||
sub.itemR(part, "angular_velocity_factor", text="")
|
sub.itemR(part, "angular_velocity_factor", text="")
|
||||||
|
|
||||||
class PARTICLE_PT_physics(ParticleButtonsPanel):
|
class PARTICLE_PT_physics(ParticleButtonsPanel):
|
||||||
__label__ = "Physics"
|
bl_label = "Physics"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if particle_panel_poll(context):
|
if particle_panel_poll(context):
|
||||||
@ -449,7 +449,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel):
|
|||||||
layout.itemR(key, "mode", expand=True)
|
layout.itemR(key, "mode", expand=True)
|
||||||
|
|
||||||
class PARTICLE_PT_boidbrain(ParticleButtonsPanel):
|
class PARTICLE_PT_boidbrain(ParticleButtonsPanel):
|
||||||
__label__ = "Boid Brain"
|
bl_label = "Boid Brain"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
psys = context.particle_system
|
psys = context.particle_system
|
||||||
@ -543,7 +543,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel):
|
|||||||
row.itemR(rule, "flee_distance")
|
row.itemR(rule, "flee_distance")
|
||||||
|
|
||||||
class PARTICLE_PT_render(ParticleButtonsPanel):
|
class PARTICLE_PT_render(ParticleButtonsPanel):
|
||||||
__label__ = "Render"
|
bl_label = "Render"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
psys = context.particle_system
|
psys = context.particle_system
|
||||||
@ -706,8 +706,8 @@ class PARTICLE_PT_render(ParticleButtonsPanel):
|
|||||||
col.itemL(text="")
|
col.itemL(text="")
|
||||||
|
|
||||||
class PARTICLE_PT_draw(ParticleButtonsPanel):
|
class PARTICLE_PT_draw(ParticleButtonsPanel):
|
||||||
__label__ = "Display"
|
bl_label = "Display"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
psys = context.particle_system
|
psys = context.particle_system
|
||||||
@ -761,8 +761,8 @@ class PARTICLE_PT_draw(ParticleButtonsPanel):
|
|||||||
#subcol.itemL(text="Override material color")
|
#subcol.itemL(text="Override material color")
|
||||||
|
|
||||||
class PARTICLE_PT_children(ParticleButtonsPanel):
|
class PARTICLE_PT_children(ParticleButtonsPanel):
|
||||||
__label__ = "Children"
|
bl_label = "Children"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -837,8 +837,8 @@ class PARTICLE_PT_children(ParticleButtonsPanel):
|
|||||||
sub.itemR(part, "kink_shape", slider=True)
|
sub.itemR(part, "kink_shape", slider=True)
|
||||||
|
|
||||||
class PARTICLE_PT_field_weights(ParticleButtonsPanel):
|
class PARTICLE_PT_field_weights(ParticleButtonsPanel):
|
||||||
__label__ = "Field Weights"
|
bl_label = "Field Weights"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
part = context.particle_system.settings
|
part = context.particle_system.settings
|
||||||
@ -848,8 +848,8 @@ class PARTICLE_PT_field_weights(ParticleButtonsPanel):
|
|||||||
self.layout.itemR(part.effector_weights, "do_growing_hair")
|
self.layout.itemR(part.effector_weights, "do_growing_hair")
|
||||||
|
|
||||||
class PARTICLE_PT_force_fields(ParticleButtonsPanel):
|
class PARTICLE_PT_force_fields(ParticleButtonsPanel):
|
||||||
__label__ = "Force Field Settings"
|
bl_label = "Force Field Settings"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -874,8 +874,8 @@ class PARTICLE_PT_force_fields(ParticleButtonsPanel):
|
|||||||
basic_force_field_falloff_ui(self, part.force_field_2)
|
basic_force_field_falloff_ui(self, part.force_field_2)
|
||||||
|
|
||||||
class PARTICLE_PT_vertexgroups(ParticleButtonsPanel):
|
class PARTICLE_PT_vertexgroups(ParticleButtonsPanel):
|
||||||
__label__ = "Vertexgroups"
|
bl_label = "Vertexgroups"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -8,9 +8,9 @@ def cloth_panel_enabled(md):
|
|||||||
return md.point_cache.baked==False
|
return md.point_cache.baked==False
|
||||||
|
|
||||||
class PhysicButtonsPanel(bpy.types.Panel):
|
class PhysicButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "physics"
|
bl_context = "physics"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.object
|
ob = context.object
|
||||||
@ -18,7 +18,7 @@ class PhysicButtonsPanel(bpy.types.Panel):
|
|||||||
return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
|
return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
|
||||||
|
|
||||||
class PHYSICS_PT_cloth(PhysicButtonsPanel):
|
class PHYSICS_PT_cloth(PhysicButtonsPanel):
|
||||||
__label__ = "Cloth"
|
bl_label = "Cloth"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -88,8 +88,8 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
class PHYSICS_PT_cloth_cache(PhysicButtonsPanel):
|
class PHYSICS_PT_cloth_cache(PhysicButtonsPanel):
|
||||||
__label__ = "Cloth Cache"
|
bl_label = "Cloth Cache"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.cloth
|
return context.cloth
|
||||||
@ -99,8 +99,8 @@ class PHYSICS_PT_cloth_cache(PhysicButtonsPanel):
|
|||||||
point_cache_ui(self, md.point_cache, cloth_panel_enabled(md), 0, 0)
|
point_cache_ui(self, md.point_cache, cloth_panel_enabled(md), 0, 0)
|
||||||
|
|
||||||
class PHYSICS_PT_cloth_collision(PhysicButtonsPanel):
|
class PHYSICS_PT_cloth_collision(PhysicButtonsPanel):
|
||||||
__label__ = "Cloth Collision"
|
bl_label = "Cloth Collision"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.cloth
|
return context.cloth
|
||||||
@ -134,8 +134,8 @@ class PHYSICS_PT_cloth_collision(PhysicButtonsPanel):
|
|||||||
sub.itemR(cloth, "self_min_distance", slider=True, text="Distance")
|
sub.itemR(cloth, "self_min_distance", slider=True, text="Distance")
|
||||||
|
|
||||||
class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel):
|
class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel):
|
||||||
__label__ = "Cloth Stiffness Scaling"
|
bl_label = "Cloth Stiffness Scaling"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.cloth
|
return context.cloth
|
||||||
@ -170,8 +170,8 @@ class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel):
|
|||||||
sub.item_pointerR(cloth, "bending_vertex_group", ob, "vertex_groups", text="")
|
sub.item_pointerR(cloth, "bending_vertex_group", ob, "vertex_groups", text="")
|
||||||
|
|
||||||
class PHYSICS_PT_cloth_field_weights(PhysicButtonsPanel):
|
class PHYSICS_PT_cloth_field_weights(PhysicButtonsPanel):
|
||||||
__label__ = "Cloth Field Weights"
|
bl_label = "Cloth Field Weights"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.cloth)
|
return (context.cloth)
|
||||||
|
@ -5,16 +5,16 @@ from buttons_physics_common import basic_force_field_settings_ui
|
|||||||
from buttons_physics_common import basic_force_field_falloff_ui
|
from buttons_physics_common import basic_force_field_falloff_ui
|
||||||
|
|
||||||
class PhysicButtonsPanel(bpy.types.Panel):
|
class PhysicButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "physics"
|
bl_context = "physics"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
rd = context.scene.render_data
|
rd = context.scene.render_data
|
||||||
return (context.object) and (not rd.use_game_engine)
|
return (context.object) and (not rd.use_game_engine)
|
||||||
|
|
||||||
class PHYSICS_PT_field(PhysicButtonsPanel):
|
class PHYSICS_PT_field(PhysicButtonsPanel):
|
||||||
__label__ = "Force Fields"
|
bl_label = "Force Fields"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -130,8 +130,8 @@ class PHYSICS_PT_field(PhysicButtonsPanel):
|
|||||||
sub.itemR(field, "radial_maximum", text="Distance")
|
sub.itemR(field, "radial_maximum", text="Distance")
|
||||||
|
|
||||||
class PHYSICS_PT_collision(PhysicButtonsPanel):
|
class PHYSICS_PT_collision(PhysicButtonsPanel):
|
||||||
__label__ = "Collision"
|
bl_label = "Collision"
|
||||||
#__default_closed__ = True
|
#bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.object
|
ob = context.object
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class PhysicButtonsPanel(bpy.types.Panel):
|
class PhysicButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "physics"
|
bl_context = "physics"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.object
|
ob = context.object
|
||||||
@ -12,7 +12,7 @@ class PhysicButtonsPanel(bpy.types.Panel):
|
|||||||
return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
|
return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
|
||||||
|
|
||||||
class PHYSICS_PT_fluid(PhysicButtonsPanel):
|
class PHYSICS_PT_fluid(PhysicButtonsPanel):
|
||||||
__label__ = "Fluid"
|
bl_label = "Fluid"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -169,8 +169,8 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel):
|
|||||||
sub.itemR(fluid, "velocity_radius", text="Radius")
|
sub.itemR(fluid, "velocity_radius", text="Radius")
|
||||||
|
|
||||||
class PHYSICS_PT_domain_gravity(PhysicButtonsPanel):
|
class PHYSICS_PT_domain_gravity(PhysicButtonsPanel):
|
||||||
__label__ = "Domain World"
|
bl_label = "Domain World"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
md = context.fluid
|
md = context.fluid
|
||||||
@ -207,8 +207,8 @@ class PHYSICS_PT_domain_gravity(PhysicButtonsPanel):
|
|||||||
sub.itemR(fluid, "compressibility", slider=True)
|
sub.itemR(fluid, "compressibility", slider=True)
|
||||||
|
|
||||||
class PHYSICS_PT_domain_boundary(PhysicButtonsPanel):
|
class PHYSICS_PT_domain_boundary(PhysicButtonsPanel):
|
||||||
__label__ = "Domain Boundary"
|
bl_label = "Domain Boundary"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
md = context.fluid
|
md = context.fluid
|
||||||
@ -235,8 +235,8 @@ class PHYSICS_PT_domain_boundary(PhysicButtonsPanel):
|
|||||||
sub.itemR(fluid, "surface_subdivisions", text="Subdivisions")
|
sub.itemR(fluid, "surface_subdivisions", text="Subdivisions")
|
||||||
|
|
||||||
class PHYSICS_PT_domain_particles(PhysicButtonsPanel):
|
class PHYSICS_PT_domain_particles(PhysicButtonsPanel):
|
||||||
__label__ = "Domain Particles"
|
bl_label = "Domain Particles"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
md = context.fluid
|
md = context.fluid
|
||||||
|
@ -5,9 +5,9 @@ from buttons_physics_common import point_cache_ui
|
|||||||
from buttons_physics_common import effector_weights_ui
|
from buttons_physics_common import effector_weights_ui
|
||||||
|
|
||||||
class PhysicButtonsPanel(bpy.types.Panel):
|
class PhysicButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "physics"
|
bl_context = "physics"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.object
|
ob = context.object
|
||||||
@ -15,7 +15,7 @@ class PhysicButtonsPanel(bpy.types.Panel):
|
|||||||
return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
|
return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
|
||||||
|
|
||||||
class PHYSICS_PT_smoke(PhysicButtonsPanel):
|
class PHYSICS_PT_smoke(PhysicButtonsPanel):
|
||||||
__label__ = "Smoke"
|
bl_label = "Smoke"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -86,8 +86,8 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel):
|
|||||||
# layout.itemS()
|
# layout.itemS()
|
||||||
|
|
||||||
class PHYSICS_PT_smoke_groups(PhysicButtonsPanel):
|
class PHYSICS_PT_smoke_groups(PhysicButtonsPanel):
|
||||||
__label__ = "Smoke Groups"
|
bl_label = "Smoke Groups"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
md = context.smoke
|
md = context.smoke
|
||||||
@ -112,8 +112,8 @@ class PHYSICS_PT_smoke_groups(PhysicButtonsPanel):
|
|||||||
col.itemR(group, "coll_group", text="")
|
col.itemR(group, "coll_group", text="")
|
||||||
|
|
||||||
class PHYSICS_PT_smoke_cache(PhysicButtonsPanel):
|
class PHYSICS_PT_smoke_cache(PhysicButtonsPanel):
|
||||||
__label__ = "Smoke Cache"
|
bl_label = "Smoke Cache"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
md = context.smoke
|
md = context.smoke
|
||||||
@ -128,8 +128,8 @@ class PHYSICS_PT_smoke_cache(PhysicButtonsPanel):
|
|||||||
point_cache_ui(self, cache, cache.baked==False, 0, 1)
|
point_cache_ui(self, cache, cache.baked==False, 0, 1)
|
||||||
|
|
||||||
class PHYSICS_PT_smoke_highres(PhysicButtonsPanel):
|
class PHYSICS_PT_smoke_highres(PhysicButtonsPanel):
|
||||||
__label__ = "Smoke High Resolution"
|
bl_label = "Smoke High Resolution"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
md = context.smoke
|
md = context.smoke
|
||||||
@ -158,8 +158,8 @@ class PHYSICS_PT_smoke_highres(PhysicButtonsPanel):
|
|||||||
col.itemR(md, "viewhighres")
|
col.itemR(md, "viewhighres")
|
||||||
|
|
||||||
class PHYSICS_PT_smoke_cache_highres(PhysicButtonsPanel):
|
class PHYSICS_PT_smoke_cache_highres(PhysicButtonsPanel):
|
||||||
__label__ = "Smoke High Resolution Cache"
|
bl_label = "Smoke High Resolution Cache"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
md = context.smoke
|
md = context.smoke
|
||||||
@ -174,8 +174,8 @@ class PHYSICS_PT_smoke_cache_highres(PhysicButtonsPanel):
|
|||||||
point_cache_ui(self, cache, cache.baked==False, 0, 1)
|
point_cache_ui(self, cache, cache.baked==False, 0, 1)
|
||||||
|
|
||||||
class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel):
|
class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel):
|
||||||
__label__ = "Smoke Field Weights"
|
bl_label = "Smoke Field Weights"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
smoke = context.smoke
|
smoke = context.smoke
|
||||||
|
@ -8,9 +8,9 @@ def softbody_panel_enabled(md):
|
|||||||
return md.point_cache.baked==False
|
return md.point_cache.baked==False
|
||||||
|
|
||||||
class PhysicButtonsPanel(bpy.types.Panel):
|
class PhysicButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "physics"
|
bl_context = "physics"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.object
|
ob = context.object
|
||||||
@ -18,7 +18,7 @@ class PhysicButtonsPanel(bpy.types.Panel):
|
|||||||
return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
|
return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
|
||||||
|
|
||||||
class PHYSICS_PT_softbody(PhysicButtonsPanel):
|
class PHYSICS_PT_softbody(PhysicButtonsPanel):
|
||||||
__label__ = "Soft Body"
|
bl_label = "Soft Body"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -59,8 +59,8 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel):
|
|||||||
col.itemR(softbody, "speed")
|
col.itemR(softbody, "speed")
|
||||||
|
|
||||||
class PHYSICS_PT_softbody_cache(PhysicButtonsPanel):
|
class PHYSICS_PT_softbody_cache(PhysicButtonsPanel):
|
||||||
__label__ = "Soft Body Cache"
|
bl_label = "Soft Body Cache"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.soft_body
|
return context.soft_body
|
||||||
@ -70,8 +70,8 @@ class PHYSICS_PT_softbody_cache(PhysicButtonsPanel):
|
|||||||
point_cache_ui(self, md.point_cache, softbody_panel_enabled(md), 0, 0)
|
point_cache_ui(self, md.point_cache, softbody_panel_enabled(md), 0, 0)
|
||||||
|
|
||||||
class PHYSICS_PT_softbody_goal(PhysicButtonsPanel):
|
class PHYSICS_PT_softbody_goal(PhysicButtonsPanel):
|
||||||
__label__ = "Soft Body Goal"
|
bl_label = "Soft Body Goal"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.soft_body
|
return context.soft_body
|
||||||
@ -111,8 +111,8 @@ class PHYSICS_PT_softbody_goal(PhysicButtonsPanel):
|
|||||||
layout.item_pointerR(softbody, "goal_vertex_group", ob, "vertex_groups", text="Vertex Group")
|
layout.item_pointerR(softbody, "goal_vertex_group", ob, "vertex_groups", text="Vertex Group")
|
||||||
|
|
||||||
class PHYSICS_PT_softbody_edge(PhysicButtonsPanel):
|
class PHYSICS_PT_softbody_edge(PhysicButtonsPanel):
|
||||||
__label__ = "Soft Body Edges"
|
bl_label = "Soft Body Edges"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.soft_body
|
return context.soft_body
|
||||||
@ -159,8 +159,8 @@ class PHYSICS_PT_softbody_edge(PhysicButtonsPanel):
|
|||||||
col.itemR(softbody, "face_collision", text="Face")
|
col.itemR(softbody, "face_collision", text="Face")
|
||||||
|
|
||||||
class PHYSICS_PT_softbody_collision(PhysicButtonsPanel):
|
class PHYSICS_PT_softbody_collision(PhysicButtonsPanel):
|
||||||
__label__ = "Soft Body Collision"
|
bl_label = "Soft Body Collision"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.soft_body
|
return context.soft_body
|
||||||
@ -190,8 +190,8 @@ class PHYSICS_PT_softbody_collision(PhysicButtonsPanel):
|
|||||||
col.itemR(softbody, "ball_damp", text="Dampening")
|
col.itemR(softbody, "ball_damp", text="Dampening")
|
||||||
|
|
||||||
class PHYSICS_PT_softbody_solver(PhysicButtonsPanel):
|
class PHYSICS_PT_softbody_solver(PhysicButtonsPanel):
|
||||||
__label__ = "Soft Body Solver"
|
bl_label = "Soft Body Solver"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.soft_body
|
return context.soft_body
|
||||||
@ -224,8 +224,8 @@ class PHYSICS_PT_softbody_solver(PhysicButtonsPanel):
|
|||||||
layout.itemR(softbody, "diagnose")
|
layout.itemR(softbody, "diagnose")
|
||||||
|
|
||||||
class PHYSICS_PT_softbody_field_weights(PhysicButtonsPanel):
|
class PHYSICS_PT_softbody_field_weights(PhysicButtonsPanel):
|
||||||
__label__ = "Soft Body Field Weights"
|
bl_label = "Soft Body Field Weights"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.soft_body)
|
return (context.soft_body)
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class RenderButtonsPanel(bpy.types.Panel):
|
class RenderButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "render"
|
bl_context = "render"
|
||||||
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -12,7 +12,7 @@ class RenderButtonsPanel(bpy.types.Panel):
|
|||||||
return (context.scene and rd.use_game_engine==False) and (rd.engine in self.COMPAT_ENGINES)
|
return (context.scene and rd.use_game_engine==False) and (rd.engine in self.COMPAT_ENGINES)
|
||||||
|
|
||||||
class RENDER_PT_render(RenderButtonsPanel):
|
class RENDER_PT_render(RenderButtonsPanel):
|
||||||
__label__ = "Render"
|
bl_label = "Render"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -27,8 +27,8 @@ class RENDER_PT_render(RenderButtonsPanel):
|
|||||||
layout.itemR(rd, "display_mode", text="Display")
|
layout.itemR(rd, "display_mode", text="Display")
|
||||||
|
|
||||||
class RENDER_PT_layers(RenderButtonsPanel):
|
class RENDER_PT_layers(RenderButtonsPanel):
|
||||||
__label__ = "Layers"
|
bl_label = "Layers"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -121,7 +121,7 @@ class RENDER_PT_layers(RenderButtonsPanel):
|
|||||||
row.itemR(rl, "pass_refraction_exclude", text="", icon='ICON_X')
|
row.itemR(rl, "pass_refraction_exclude", text="", icon='ICON_X')
|
||||||
|
|
||||||
class RENDER_PT_shading(RenderButtonsPanel):
|
class RENDER_PT_shading(RenderButtonsPanel):
|
||||||
__label__ = "Shading"
|
bl_label = "Shading"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -143,8 +143,8 @@ class RENDER_PT_shading(RenderButtonsPanel):
|
|||||||
col.itemR(rd, "alpha_mode", text="Alpha")
|
col.itemR(rd, "alpha_mode", text="Alpha")
|
||||||
|
|
||||||
class RENDER_PT_performance(RenderButtonsPanel):
|
class RENDER_PT_performance(RenderButtonsPanel):
|
||||||
__label__ = "Performance"
|
bl_label = "Performance"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -183,8 +183,8 @@ class RENDER_PT_performance(RenderButtonsPanel):
|
|||||||
sub.itemR(rd, "use_local_coords", text="Local Coordinates")
|
sub.itemR(rd, "use_local_coords", text="Local Coordinates")
|
||||||
|
|
||||||
class RENDER_PT_post_processing(RenderButtonsPanel):
|
class RENDER_PT_post_processing(RenderButtonsPanel):
|
||||||
__label__ = "Post Processing"
|
bl_label = "Post Processing"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -220,7 +220,7 @@ class RENDER_PT_post_processing(RenderButtonsPanel):
|
|||||||
sub.itemR(rd, "edge_color", text="")
|
sub.itemR(rd, "edge_color", text="")
|
||||||
|
|
||||||
class RENDER_PT_output(RenderButtonsPanel):
|
class RENDER_PT_output(RenderButtonsPanel):
|
||||||
__label__ = "Output"
|
bl_label = "Output"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -284,8 +284,8 @@ class RENDER_PT_output(RenderButtonsPanel):
|
|||||||
split.itemR(rd, "tiff_bit")
|
split.itemR(rd, "tiff_bit")
|
||||||
|
|
||||||
class RENDER_PT_encoding(RenderButtonsPanel):
|
class RENDER_PT_encoding(RenderButtonsPanel):
|
||||||
__label__ = "Encoding"
|
bl_label = "Encoding"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -336,7 +336,7 @@ class RENDER_PT_encoding(RenderButtonsPanel):
|
|||||||
col.itemR(rd, "ffmpeg_audio_volume")
|
col.itemR(rd, "ffmpeg_audio_volume")
|
||||||
|
|
||||||
class RENDER_PT_antialiasing(RenderButtonsPanel):
|
class RENDER_PT_antialiasing(RenderButtonsPanel):
|
||||||
__label__ = "Anti-Aliasing"
|
bl_label = "Anti-Aliasing"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
@ -362,7 +362,7 @@ class RENDER_PT_antialiasing(RenderButtonsPanel):
|
|||||||
col.itemR(rd, "filter_size", text="Size", slider=True)
|
col.itemR(rd, "filter_size", text="Size", slider=True)
|
||||||
|
|
||||||
class RENDER_PT_dimensions(RenderButtonsPanel):
|
class RENDER_PT_dimensions(RenderButtonsPanel):
|
||||||
__label__ = "Dimensions"
|
bl_label = "Dimensions"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -401,8 +401,8 @@ class RENDER_PT_dimensions(RenderButtonsPanel):
|
|||||||
col.itemR(rd, "fps_base",text="/")
|
col.itemR(rd, "fps_base",text="/")
|
||||||
|
|
||||||
class RENDER_PT_stamp(RenderButtonsPanel):
|
class RENDER_PT_stamp(RenderButtonsPanel):
|
||||||
__label__ = "Stamp"
|
bl_label = "Stamp"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class SceneButtonsPanel(bpy.types.Panel):
|
class SceneButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "scene"
|
bl_context = "scene"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.scene
|
return context.scene
|
||||||
|
|
||||||
class SCENE_PT_scene(SceneButtonsPanel):
|
class SCENE_PT_scene(SceneButtonsPanel):
|
||||||
__label__ = "Scene"
|
bl_label = "Scene"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -22,7 +22,7 @@ class SCENE_PT_scene(SceneButtonsPanel):
|
|||||||
layout.itemR(scene, "set", text="Background")
|
layout.itemR(scene, "set", text="Background")
|
||||||
|
|
||||||
class SCENE_PT_unit(SceneButtonsPanel):
|
class SCENE_PT_unit(SceneButtonsPanel):
|
||||||
__label__ = "Units"
|
bl_label = "Units"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -39,7 +39,7 @@ class SCENE_PT_unit(SceneButtonsPanel):
|
|||||||
row.itemR(unit, "use_separate")
|
row.itemR(unit, "use_separate")
|
||||||
|
|
||||||
class SCENE_PT_keying_sets(SceneButtonsPanel):
|
class SCENE_PT_keying_sets(SceneButtonsPanel):
|
||||||
__label__ = "Keying Sets"
|
bl_label = "Keying Sets"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -69,7 +69,7 @@ class SCENE_PT_keying_sets(SceneButtonsPanel):
|
|||||||
col.itemR(ks, "insertkey_visual", text="Visual")
|
col.itemR(ks, "insertkey_visual", text="Visual")
|
||||||
|
|
||||||
class SCENE_PT_keying_set_paths(SceneButtonsPanel):
|
class SCENE_PT_keying_set_paths(SceneButtonsPanel):
|
||||||
__label__ = "Active Keying Set"
|
bl_label = "Active Keying Set"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.scene != None) and (context.scene.active_keying_set != None)
|
return (context.scene != None) and (context.scene.active_keying_set != None)
|
||||||
@ -115,7 +115,7 @@ class SCENE_PT_keying_set_paths(SceneButtonsPanel):
|
|||||||
col.itemR(ksp, "group")
|
col.itemR(ksp, "group")
|
||||||
|
|
||||||
class SCENE_PT_physics(SceneButtonsPanel):
|
class SCENE_PT_physics(SceneButtonsPanel):
|
||||||
__label__ = "Gravity"
|
bl_label = "Gravity"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
|
@ -26,16 +26,16 @@ def context_tex_datablock(context):
|
|||||||
return idblock
|
return idblock
|
||||||
|
|
||||||
class TextureButtonsPanel(bpy.types.Panel):
|
class TextureButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "texture"
|
bl_context = "texture"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
tex = context.texture
|
tex = context.texture
|
||||||
return (tex and (tex.type != 'NONE' or tex.use_nodes))
|
return (tex and (tex.type != 'NONE' or tex.use_nodes))
|
||||||
|
|
||||||
class TEXTURE_PT_preview(TextureButtonsPanel):
|
class TEXTURE_PT_preview(TextureButtonsPanel):
|
||||||
__label__ = "Preview"
|
bl_label = "Preview"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -51,7 +51,7 @@ class TEXTURE_PT_preview(TextureButtonsPanel):
|
|||||||
layout.template_preview(tex, slot=slot)
|
layout.template_preview(tex, slot=slot)
|
||||||
|
|
||||||
class TEXTURE_PT_context_texture(TextureButtonsPanel):
|
class TEXTURE_PT_context_texture(TextureButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.material or context.world or context.lamp or context.brush or context.texture)
|
return (context.material or context.world or context.lamp or context.brush or context.texture)
|
||||||
@ -107,8 +107,8 @@ class TEXTURE_PT_context_texture(TextureButtonsPanel):
|
|||||||
split.itemR(tex, "type", text="")
|
split.itemR(tex, "type", text="")
|
||||||
|
|
||||||
class TEXTURE_PT_colors(TextureButtonsPanel):
|
class TEXTURE_PT_colors(TextureButtonsPanel):
|
||||||
__label__ = "Colors"
|
bl_label = "Colors"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -143,7 +143,7 @@ class TextureSlotPanel(TextureButtonsPanel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
class TEXTURE_PT_mapping(TextureSlotPanel):
|
class TEXTURE_PT_mapping(TextureSlotPanel):
|
||||||
__label__ = "Mapping"
|
bl_label = "Mapping"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -218,7 +218,7 @@ class TEXTURE_PT_mapping(TextureSlotPanel):
|
|||||||
|
|
||||||
|
|
||||||
class TEXTURE_PT_influence(TextureSlotPanel):
|
class TEXTURE_PT_influence(TextureSlotPanel):
|
||||||
__label__ = "Influence"
|
bl_label = "Influence"
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.texture_slot
|
return context.texture_slot
|
||||||
|
|
||||||
@ -327,7 +327,7 @@ class TextureTypePanel(TextureButtonsPanel):
|
|||||||
return (tex and tex.type == self.tex_type and not tex.use_nodes)
|
return (tex and tex.type == self.tex_type and not tex.use_nodes)
|
||||||
|
|
||||||
class TEXTURE_PT_clouds(TextureTypePanel):
|
class TEXTURE_PT_clouds(TextureTypePanel):
|
||||||
__label__ = "Clouds"
|
bl_label = "Clouds"
|
||||||
tex_type = 'CLOUDS'
|
tex_type = 'CLOUDS'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -346,7 +346,7 @@ class TEXTURE_PT_clouds(TextureTypePanel):
|
|||||||
flow.itemR(tex, "nabla", text="Nabla")
|
flow.itemR(tex, "nabla", text="Nabla")
|
||||||
|
|
||||||
class TEXTURE_PT_wood(TextureTypePanel):
|
class TEXTURE_PT_wood(TextureTypePanel):
|
||||||
__label__ = "Wood"
|
bl_label = "Wood"
|
||||||
tex_type = 'WOOD'
|
tex_type = 'WOOD'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -370,7 +370,7 @@ class TEXTURE_PT_wood(TextureTypePanel):
|
|||||||
flow.itemR(tex, "nabla")
|
flow.itemR(tex, "nabla")
|
||||||
|
|
||||||
class TEXTURE_PT_marble(TextureTypePanel):
|
class TEXTURE_PT_marble(TextureTypePanel):
|
||||||
__label__ = "Marble"
|
bl_label = "Marble"
|
||||||
tex_type = 'MARBLE'
|
tex_type = 'MARBLE'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -391,7 +391,7 @@ class TEXTURE_PT_marble(TextureTypePanel):
|
|||||||
flow.itemR(tex, "nabla")
|
flow.itemR(tex, "nabla")
|
||||||
|
|
||||||
class TEXTURE_PT_magic(TextureTypePanel):
|
class TEXTURE_PT_magic(TextureTypePanel):
|
||||||
__label__ = "Magic"
|
bl_label = "Magic"
|
||||||
tex_type = 'MAGIC'
|
tex_type = 'MAGIC'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -404,7 +404,7 @@ class TEXTURE_PT_magic(TextureTypePanel):
|
|||||||
row.itemR(tex, "turbulence")
|
row.itemR(tex, "turbulence")
|
||||||
|
|
||||||
class TEXTURE_PT_blend(TextureTypePanel):
|
class TEXTURE_PT_blend(TextureTypePanel):
|
||||||
__label__ = "Blend"
|
bl_label = "Blend"
|
||||||
tex_type = 'BLEND'
|
tex_type = 'BLEND'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -419,7 +419,7 @@ class TEXTURE_PT_blend(TextureTypePanel):
|
|||||||
sub.itemR(tex, "flip_axis", expand=True)
|
sub.itemR(tex, "flip_axis", expand=True)
|
||||||
|
|
||||||
class TEXTURE_PT_stucci(TextureTypePanel):
|
class TEXTURE_PT_stucci(TextureTypePanel):
|
||||||
__label__ = "Stucci"
|
bl_label = "Stucci"
|
||||||
tex_type = 'STUCCI'
|
tex_type = 'STUCCI'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -437,7 +437,7 @@ class TEXTURE_PT_stucci(TextureTypePanel):
|
|||||||
row.itemR(tex, "turbulence")
|
row.itemR(tex, "turbulence")
|
||||||
|
|
||||||
class TEXTURE_PT_image(TextureTypePanel):
|
class TEXTURE_PT_image(TextureTypePanel):
|
||||||
__label__ = "Image"
|
bl_label = "Image"
|
||||||
tex_type = 'IMAGE'
|
tex_type = 'IMAGE'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -448,8 +448,8 @@ class TEXTURE_PT_image(TextureTypePanel):
|
|||||||
layout.template_image(tex, "image", tex.image_user)
|
layout.template_image(tex, "image", tex.image_user)
|
||||||
|
|
||||||
class TEXTURE_PT_image_sampling(TextureTypePanel):
|
class TEXTURE_PT_image_sampling(TextureTypePanel):
|
||||||
__label__ = "Image Sampling"
|
bl_label = "Image Sampling"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
tex_type = 'IMAGE'
|
tex_type = 'IMAGE'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -491,8 +491,8 @@ class TEXTURE_PT_image_sampling(TextureTypePanel):
|
|||||||
col.itemR(tex, "filter_eccentricity", text="Eccentricity")
|
col.itemR(tex, "filter_eccentricity", text="Eccentricity")
|
||||||
|
|
||||||
class TEXTURE_PT_image_mapping(TextureTypePanel):
|
class TEXTURE_PT_image_mapping(TextureTypePanel):
|
||||||
__label__ = "Image Mapping"
|
bl_label = "Image Mapping"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
tex_type = 'IMAGE'
|
tex_type = 'IMAGE'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -539,7 +539,7 @@ class TEXTURE_PT_image_mapping(TextureTypePanel):
|
|||||||
col.itemR(tex, "crop_max_y", text="Y")
|
col.itemR(tex, "crop_max_y", text="Y")
|
||||||
|
|
||||||
class TEXTURE_PT_plugin(TextureTypePanel):
|
class TEXTURE_PT_plugin(TextureTypePanel):
|
||||||
__label__ = "Plugin"
|
bl_label = "Plugin"
|
||||||
tex_type = 'PLUGIN'
|
tex_type = 'PLUGIN'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -550,7 +550,7 @@ class TEXTURE_PT_plugin(TextureTypePanel):
|
|||||||
layout.itemL(text="Nothing yet")
|
layout.itemL(text="Nothing yet")
|
||||||
|
|
||||||
class TEXTURE_PT_envmap(TextureTypePanel):
|
class TEXTURE_PT_envmap(TextureTypePanel):
|
||||||
__label__ = "Environment Map"
|
bl_label = "Environment Map"
|
||||||
tex_type = 'ENVIRONMENT_MAP'
|
tex_type = 'ENVIRONMENT_MAP'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -561,7 +561,7 @@ class TEXTURE_PT_envmap(TextureTypePanel):
|
|||||||
layout.itemL(text="Nothing yet")
|
layout.itemL(text="Nothing yet")
|
||||||
|
|
||||||
class TEXTURE_PT_musgrave(TextureTypePanel):
|
class TEXTURE_PT_musgrave(TextureTypePanel):
|
||||||
__label__ = "Musgrave"
|
bl_label = "Musgrave"
|
||||||
tex_type = 'MUSGRAVE'
|
tex_type = 'MUSGRAVE'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -594,7 +594,7 @@ class TEXTURE_PT_musgrave(TextureTypePanel):
|
|||||||
row.itemR(tex, "nabla")
|
row.itemR(tex, "nabla")
|
||||||
|
|
||||||
class TEXTURE_PT_voronoi(TextureTypePanel):
|
class TEXTURE_PT_voronoi(TextureTypePanel):
|
||||||
__label__ = "Voronoi"
|
bl_label = "Voronoi"
|
||||||
tex_type = 'VORONOI'
|
tex_type = 'VORONOI'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -628,7 +628,7 @@ class TEXTURE_PT_voronoi(TextureTypePanel):
|
|||||||
row.itemR(tex, "nabla")
|
row.itemR(tex, "nabla")
|
||||||
|
|
||||||
class TEXTURE_PT_distortednoise(TextureTypePanel):
|
class TEXTURE_PT_distortednoise(TextureTypePanel):
|
||||||
__label__ = "Distorted Noise"
|
bl_label = "Distorted Noise"
|
||||||
tex_type = 'DISTORTED_NOISE'
|
tex_type = 'DISTORTED_NOISE'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -645,7 +645,7 @@ class TEXTURE_PT_distortednoise(TextureTypePanel):
|
|||||||
flow.itemR(tex, "nabla")
|
flow.itemR(tex, "nabla")
|
||||||
|
|
||||||
class TEXTURE_PT_voxeldata(TextureButtonsPanel):
|
class TEXTURE_PT_voxeldata(TextureButtonsPanel):
|
||||||
__label__ = "Voxel Data"
|
bl_label = "Voxel Data"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
tex = context.texture
|
tex = context.texture
|
||||||
@ -675,7 +675,7 @@ class TEXTURE_PT_voxeldata(TextureButtonsPanel):
|
|||||||
layout.itemR(vd, "intensity")
|
layout.itemR(vd, "intensity")
|
||||||
|
|
||||||
class TEXTURE_PT_pointdensity(TextureButtonsPanel):
|
class TEXTURE_PT_pointdensity(TextureButtonsPanel):
|
||||||
__label__ = "Point Density"
|
bl_label = "Point Density"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
tex = context.texture
|
tex = context.texture
|
||||||
@ -727,7 +727,7 @@ class TEXTURE_PT_pointdensity(TextureButtonsPanel):
|
|||||||
col.itemR(pd, "falloff_softness")
|
col.itemR(pd, "falloff_softness")
|
||||||
|
|
||||||
class TEXTURE_PT_pointdensity_turbulence(TextureButtonsPanel):
|
class TEXTURE_PT_pointdensity_turbulence(TextureButtonsPanel):
|
||||||
__label__ = "Turbulence"
|
bl_label = "Turbulence"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
tex = context.texture
|
tex = context.texture
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class WorldButtonsPanel(bpy.types.Panel):
|
class WorldButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
__region_type__ = 'WINDOW'
|
bl_region_type = 'WINDOW'
|
||||||
__context__ = "world"
|
bl_context = "world"
|
||||||
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -12,14 +12,14 @@ class WorldButtonsPanel(bpy.types.Panel):
|
|||||||
return (context.world) and (not rd.use_game_engine) and (rd.engine in self.COMPAT_ENGINES)
|
return (context.world) and (not rd.use_game_engine) and (rd.engine in self.COMPAT_ENGINES)
|
||||||
|
|
||||||
class WORLD_PT_preview(WorldButtonsPanel):
|
class WORLD_PT_preview(WorldButtonsPanel):
|
||||||
__label__ = "Preview"
|
bl_label = "Preview"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
self.layout.template_preview(context.world)
|
self.layout.template_preview(context.world)
|
||||||
|
|
||||||
class WORLD_PT_context_world(WorldButtonsPanel):
|
class WORLD_PT_context_world(WorldButtonsPanel):
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
@ -41,7 +41,7 @@ class WORLD_PT_context_world(WorldButtonsPanel):
|
|||||||
split.template_ID(space, "pin_id")
|
split.template_ID(space, "pin_id")
|
||||||
|
|
||||||
class WORLD_PT_world(WorldButtonsPanel):
|
class WORLD_PT_world(WorldButtonsPanel):
|
||||||
__label__ = "World"
|
bl_label = "World"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -62,7 +62,7 @@ class WORLD_PT_world(WorldButtonsPanel):
|
|||||||
row.column().itemR(world, "ambient_color")
|
row.column().itemR(world, "ambient_color")
|
||||||
|
|
||||||
class WORLD_PT_mist(WorldButtonsPanel):
|
class WORLD_PT_mist(WorldButtonsPanel):
|
||||||
__label__ = "Mist"
|
bl_label = "Mist"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
@ -86,7 +86,7 @@ class WORLD_PT_mist(WorldButtonsPanel):
|
|||||||
layout.itemR(world.mist, "falloff")
|
layout.itemR(world.mist, "falloff")
|
||||||
|
|
||||||
class WORLD_PT_stars(WorldButtonsPanel):
|
class WORLD_PT_stars(WorldButtonsPanel):
|
||||||
__label__ = "Stars"
|
bl_label = "Stars"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
@ -108,7 +108,7 @@ class WORLD_PT_stars(WorldButtonsPanel):
|
|||||||
flow.itemR(world.stars, "average_separation", text="Separation")
|
flow.itemR(world.stars, "average_separation", text="Separation")
|
||||||
|
|
||||||
class WORLD_PT_ambient_occlusion(WorldButtonsPanel):
|
class WORLD_PT_ambient_occlusion(WorldButtonsPanel):
|
||||||
__label__ = "Ambient Occlusion"
|
bl_label = "Ambient Occlusion"
|
||||||
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
COMPAT_ENGINES = set(['BLENDER_RENDER'])
|
||||||
|
|
||||||
def draw_header(self, context):
|
def draw_header(self, context):
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class Buttons_HT_header(bpy.types.Header):
|
class Buttons_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'PROPERTIES'
|
bl_space_type = 'PROPERTIES'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -22,7 +22,7 @@ class Buttons_HT_header(bpy.types.Header):
|
|||||||
row.itemR(scene, "current_frame")
|
row.itemR(scene, "current_frame")
|
||||||
|
|
||||||
class Buttons_MT_view(bpy.types.Menu):
|
class Buttons_MT_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -3,7 +3,7 @@ import bpy
|
|||||||
|
|
||||||
|
|
||||||
class CONSOLE_HT_header(bpy.types.Header):
|
class CONSOLE_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'CONSOLE'
|
bl_space_type = 'CONSOLE'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
sc = context.space_data
|
sc = context.space_data
|
||||||
@ -41,7 +41,7 @@ class CONSOLE_HT_header(bpy.types.Header):
|
|||||||
|
|
||||||
|
|
||||||
class CONSOLE_MT_console(bpy.types.Menu):
|
class CONSOLE_MT_console(bpy.types.Menu):
|
||||||
__label__ = "Console"
|
bl_label = "Console"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -52,7 +52,7 @@ class CONSOLE_MT_console(bpy.types.Menu):
|
|||||||
|
|
||||||
|
|
||||||
class CONSOLE_MT_report(bpy.types.Menu):
|
class CONSOLE_MT_report(bpy.types.Menu):
|
||||||
__label__ = "Report"
|
bl_label = "Report"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -110,9 +110,9 @@ def get_console(console_id):
|
|||||||
|
|
||||||
class CONSOLE_OT_exec(bpy.types.Operator):
|
class CONSOLE_OT_exec(bpy.types.Operator):
|
||||||
'''Execute the current console line as a python expression.'''
|
'''Execute the current console line as a python expression.'''
|
||||||
__idname__ = "console.execute"
|
bl_idname = "console.execute"
|
||||||
__label__ = "Console Execute"
|
bl_label = "Console Execute"
|
||||||
__register__ = False
|
bl_register = False
|
||||||
|
|
||||||
# Both prompts must be the same length
|
# Both prompts must be the same length
|
||||||
PROMPT = '>>> '
|
PROMPT = '>>> '
|
||||||
@ -190,9 +190,9 @@ class CONSOLE_OT_exec(bpy.types.Operator):
|
|||||||
class CONSOLE_OT_autocomplete(bpy.types.Operator):
|
class CONSOLE_OT_autocomplete(bpy.types.Operator):
|
||||||
'''Evaluate the namespace up until the cursor and give a list of
|
'''Evaluate the namespace up until the cursor and give a list of
|
||||||
options or complete the name if there is only one.'''
|
options or complete the name if there is only one.'''
|
||||||
__idname__ = "console.autocomplete"
|
bl_idname = "console.autocomplete"
|
||||||
__label__ = "Console Autocomplete"
|
bl_label = "Console Autocomplete"
|
||||||
__register__ = False
|
bl_register = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.space_data.console_type == 'PYTHON'
|
return context.space_data.console_type == 'PYTHON'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class FILEBROWSER_HT_header(bpy.types.Header):
|
class FILEBROWSER_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'FILE_BROWSER'
|
bl_space_type = 'FILE_BROWSER'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class IMAGE_MT_view(bpy.types.Menu):
|
class IMAGE_MT_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -43,7 +43,7 @@ class IMAGE_MT_view(bpy.types.Menu):
|
|||||||
layout.itemO("screen.screen_full_area")
|
layout.itemO("screen.screen_full_area")
|
||||||
|
|
||||||
class IMAGE_MT_select(bpy.types.Menu):
|
class IMAGE_MT_select(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -63,7 +63,7 @@ class IMAGE_MT_select(bpy.types.Menu):
|
|||||||
layout.itemO("uv.select_linked")
|
layout.itemO("uv.select_linked")
|
||||||
|
|
||||||
class IMAGE_MT_image(bpy.types.Menu):
|
class IMAGE_MT_image(bpy.types.Menu):
|
||||||
__label__ = "Image"
|
bl_label = "Image"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -106,7 +106,7 @@ class IMAGE_MT_image(bpy.types.Menu):
|
|||||||
layout.itemR(sima, "image_painting")
|
layout.itemR(sima, "image_painting")
|
||||||
|
|
||||||
class IMAGE_MT_uvs_showhide(bpy.types.Menu):
|
class IMAGE_MT_uvs_showhide(bpy.types.Menu):
|
||||||
__label__ = "Show/Hide Faces"
|
bl_label = "Show/Hide Faces"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -116,7 +116,7 @@ class IMAGE_MT_uvs_showhide(bpy.types.Menu):
|
|||||||
layout.item_booleanO("uv.hide", "unselected", True)
|
layout.item_booleanO("uv.hide", "unselected", True)
|
||||||
|
|
||||||
class IMAGE_MT_uvs_transform(bpy.types.Menu):
|
class IMAGE_MT_uvs_transform(bpy.types.Menu):
|
||||||
__label__ = "Transform"
|
bl_label = "Transform"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -126,7 +126,7 @@ class IMAGE_MT_uvs_transform(bpy.types.Menu):
|
|||||||
layout.itemO("tfm.resize")
|
layout.itemO("tfm.resize")
|
||||||
|
|
||||||
class IMAGE_MT_uvs_mirror(bpy.types.Menu):
|
class IMAGE_MT_uvs_mirror(bpy.types.Menu):
|
||||||
__label__ = "Mirror"
|
bl_label = "Mirror"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -139,7 +139,7 @@ class IMAGE_MT_uvs_mirror(bpy.types.Menu):
|
|||||||
props.constraint_axis[1]= True
|
props.constraint_axis[1]= True
|
||||||
|
|
||||||
class IMAGE_MT_uvs_weldalign(bpy.types.Menu):
|
class IMAGE_MT_uvs_weldalign(bpy.types.Menu):
|
||||||
__label__ = "Weld/Align"
|
bl_label = "Weld/Align"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -148,7 +148,7 @@ class IMAGE_MT_uvs_weldalign(bpy.types.Menu):
|
|||||||
layout.items_enumO("uv.align", "axis") # W, 2/3/4
|
layout.items_enumO("uv.align", "axis") # W, 2/3/4
|
||||||
|
|
||||||
class IMAGE_MT_uvs(bpy.types.Menu):
|
class IMAGE_MT_uvs(bpy.types.Menu):
|
||||||
__label__ = "UVs"
|
bl_label = "UVs"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -190,7 +190,7 @@ class IMAGE_MT_uvs(bpy.types.Menu):
|
|||||||
layout.itemM("IMAGE_MT_uvs_showhide")
|
layout.itemM("IMAGE_MT_uvs_showhide")
|
||||||
|
|
||||||
class IMAGE_HT_header(bpy.types.Header):
|
class IMAGE_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'IMAGE_EDITOR'
|
bl_space_type = 'IMAGE_EDITOR'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -270,9 +270,9 @@ class IMAGE_HT_header(bpy.types.Header):
|
|||||||
layout.itemR(sima, "update_automatically", text="")
|
layout.itemR(sima, "update_automatically", text="")
|
||||||
|
|
||||||
class IMAGE_PT_image_properties(bpy.types.Panel):
|
class IMAGE_PT_image_properties(bpy.types.Panel):
|
||||||
__space_type__ = 'IMAGE_EDITOR'
|
bl_space_type = 'IMAGE_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Image"
|
bl_label = "Image"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
sima = context.space_data
|
sima = context.space_data
|
||||||
@ -288,9 +288,9 @@ class IMAGE_PT_image_properties(bpy.types.Panel):
|
|||||||
layout.template_image(sima, "image", iuser, compact=True)
|
layout.template_image(sima, "image", iuser, compact=True)
|
||||||
|
|
||||||
class IMAGE_PT_game_properties(bpy.types.Panel):
|
class IMAGE_PT_game_properties(bpy.types.Panel):
|
||||||
__space_type__ = 'IMAGE_EDITOR'
|
bl_space_type = 'IMAGE_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Game Properties"
|
bl_label = "Game Properties"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
rd = context.scene.render_data
|
rd = context.scene.render_data
|
||||||
@ -332,9 +332,9 @@ class IMAGE_PT_game_properties(bpy.types.Panel):
|
|||||||
|
|
||||||
|
|
||||||
class IMAGE_PT_view_properties(bpy.types.Panel):
|
class IMAGE_PT_view_properties(bpy.types.Panel):
|
||||||
__space_type__ = 'IMAGE_EDITOR'
|
bl_space_type = 'IMAGE_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Display"
|
bl_label = "Display"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
sima = context.space_data
|
sima = context.space_data
|
||||||
@ -385,9 +385,9 @@ class IMAGE_PT_view_properties(bpy.types.Panel):
|
|||||||
#col.itemR(uvedit, "draw_faces")
|
#col.itemR(uvedit, "draw_faces")
|
||||||
|
|
||||||
class IMAGE_PT_paint(bpy.types.Panel):
|
class IMAGE_PT_paint(bpy.types.Panel):
|
||||||
__space_type__ = 'IMAGE_EDITOR'
|
bl_space_type = 'IMAGE_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Paint"
|
bl_label = "Paint"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
sima = context.space_data
|
sima = context.space_data
|
||||||
@ -430,10 +430,10 @@ class IMAGE_PT_paint(bpy.types.Panel):
|
|||||||
col.itemR(brush, "blend", text="Blend")
|
col.itemR(brush, "blend", text="Blend")
|
||||||
|
|
||||||
class IMAGE_PT_paint_stroke(bpy.types.Panel):
|
class IMAGE_PT_paint_stroke(bpy.types.Panel):
|
||||||
__space_type__ = 'IMAGE_EDITOR'
|
bl_space_type = 'IMAGE_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Paint Stroke"
|
bl_label = "Paint Stroke"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
sima = context.space_data
|
sima = context.space_data
|
||||||
@ -458,10 +458,10 @@ class IMAGE_PT_paint_stroke(bpy.types.Panel):
|
|||||||
row.itemR(brush, "use_spacing_pressure", toggle=True, text="")
|
row.itemR(brush, "use_spacing_pressure", toggle=True, text="")
|
||||||
|
|
||||||
class IMAGE_PT_paint_curve(bpy.types.Panel):
|
class IMAGE_PT_paint_curve(bpy.types.Panel):
|
||||||
__space_type__ = 'IMAGE_EDITOR'
|
bl_space_type = 'IMAGE_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Paint Curve"
|
bl_label = "Paint Curve"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
sima = context.space_data
|
sima = context.space_data
|
||||||
|
@ -5,7 +5,7 @@ import dynamic_menu
|
|||||||
# reload(dynamic_menu)
|
# reload(dynamic_menu)
|
||||||
|
|
||||||
class INFO_HT_header(bpy.types.Header):
|
class INFO_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'INFO'
|
bl_space_type = 'INFO'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -43,7 +43,7 @@ class INFO_HT_header(bpy.types.Header):
|
|||||||
layout.itemO("wm.window_fullscreen_toggle", icon='ICON_ARROW_LEFTRIGHT', text="")
|
layout.itemO("wm.window_fullscreen_toggle", icon='ICON_ARROW_LEFTRIGHT', text="")
|
||||||
|
|
||||||
class INFO_MT_file(bpy.types.Menu):
|
class INFO_MT_file(bpy.types.Menu):
|
||||||
__label__ = "File"
|
bl_label = "File"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -85,7 +85,7 @@ class INFO_MT_file(bpy.types.Menu):
|
|||||||
# test for expanding menus
|
# test for expanding menus
|
||||||
'''
|
'''
|
||||||
class INFO_MT_file_more(INFO_MT_file):
|
class INFO_MT_file_more(INFO_MT_file):
|
||||||
__label__ = "File"
|
bl_label = "File"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -96,19 +96,19 @@ dynamic_menu.setup(INFO_MT_file_more)
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
class INFO_MT_file_import(dynamic_menu.DynMenu):
|
class INFO_MT_file_import(dynamic_menu.DynMenu):
|
||||||
__label__ = "Import"
|
bl_label = "Import"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
self.layout.itemO("WM_OT_collada_import", text="COLLADA (.dae)...")
|
self.layout.itemO("WM_OT_collada_import", text="COLLADA (.dae)...")
|
||||||
|
|
||||||
class INFO_MT_file_export(dynamic_menu.DynMenu):
|
class INFO_MT_file_export(dynamic_menu.DynMenu):
|
||||||
__label__ = "Export"
|
bl_label = "Export"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
self.layout.itemO("WM_OT_collada_export", text="COLLADA (.dae)...")
|
self.layout.itemO("WM_OT_collada_export", text="COLLADA (.dae)...")
|
||||||
|
|
||||||
class INFO_MT_file_external_data(bpy.types.Menu):
|
class INFO_MT_file_external_data(bpy.types.Menu):
|
||||||
__label__ = "External Data"
|
bl_label = "External Data"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -124,7 +124,7 @@ class INFO_MT_file_external_data(bpy.types.Menu):
|
|||||||
layout.itemO("file.find_missing_files")
|
layout.itemO("file.find_missing_files")
|
||||||
|
|
||||||
class INFO_MT_mesh_add(dynamic_menu.DynMenu):
|
class INFO_MT_mesh_add(dynamic_menu.DynMenu):
|
||||||
__label__ = "Mesh"
|
bl_label = "Mesh"
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
layout.operator_context = 'INVOKE_REGION_WIN'
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
||||||
@ -140,7 +140,7 @@ class INFO_MT_mesh_add(dynamic_menu.DynMenu):
|
|||||||
layout.itemO("mesh.primitive_monkey_add", icon='ICON_MESH_MONKEY', text="Monkey")
|
layout.itemO("mesh.primitive_monkey_add", icon='ICON_MESH_MONKEY', text="Monkey")
|
||||||
|
|
||||||
class INFO_MT_add(bpy.types.Menu):
|
class INFO_MT_add(bpy.types.Menu):
|
||||||
__label__ = "Add"
|
bl_label = "Add"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -175,7 +175,7 @@ class INFO_MT_add(bpy.types.Menu):
|
|||||||
layout.item_menu_enumO("object.group_instance_add", "type", text="Group Instance", icon='ICON_OUTLINER_OB_EMPTY')
|
layout.item_menu_enumO("object.group_instance_add", "type", text="Group Instance", icon='ICON_OUTLINER_OB_EMPTY')
|
||||||
|
|
||||||
class INFO_MT_game(bpy.types.Menu):
|
class INFO_MT_game(bpy.types.Menu):
|
||||||
__label__ = "Game"
|
bl_label = "Game"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -192,7 +192,7 @@ class INFO_MT_game(bpy.types.Menu):
|
|||||||
layout.itemR(gs, "deprecation_warnings")
|
layout.itemR(gs, "deprecation_warnings")
|
||||||
|
|
||||||
class INFO_MT_render(bpy.types.Menu):
|
class INFO_MT_render(bpy.types.Menu):
|
||||||
__label__ = "Render"
|
bl_label = "Render"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -212,7 +212,7 @@ class INFO_MT_render(bpy.types.Menu):
|
|||||||
layout.itemO("screen.render_view_show")
|
layout.itemO("screen.render_view_show")
|
||||||
|
|
||||||
class INFO_MT_help(bpy.types.Menu):
|
class INFO_MT_help(bpy.types.Menu):
|
||||||
__label__ = "Help"
|
bl_label = "Help"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -247,54 +247,54 @@ bpy.types.register(INFO_MT_help)
|
|||||||
class HelpOperator(bpy.types.Operator):
|
class HelpOperator(bpy.types.Operator):
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
import webbrowser
|
import webbrowser
|
||||||
webbrowser.open(self.__URL__)
|
webbrowser.open(self._url)
|
||||||
return ('FINISHED',)
|
return ('FINISHED',)
|
||||||
|
|
||||||
class HELP_OT_manual(HelpOperator):
|
class HELP_OT_manual(HelpOperator):
|
||||||
'''The Blender Wiki manual'''
|
'''The Blender Wiki manual'''
|
||||||
__idname__ = "help.manual"
|
bl_idname = "help.manual"
|
||||||
__label__ = "Manual"
|
bl_label = "Manual"
|
||||||
__URL__ = 'http://wiki.blender.org/index.php/Manual'
|
_url = 'http://wiki.blender.org/index.php/Manual'
|
||||||
|
|
||||||
class HELP_OT_release_logs(HelpOperator):
|
class HELP_OT_release_logs(HelpOperator):
|
||||||
'''Information about the changes in this version of Blender'''
|
'''Information about the changes in this version of Blender'''
|
||||||
__idname__ = "help.release_logs"
|
bl_idname = "help.release_logs"
|
||||||
__label__ = "Release Logs"
|
bl_label = "Release Logs"
|
||||||
__URL__ = 'http://www.blender.org/development/release-logs/'
|
_url = 'http://www.blender.org/development/release-logs/'
|
||||||
|
|
||||||
class HELP_OT_blender_website(HelpOperator):
|
class HELP_OT_blender_website(HelpOperator):
|
||||||
'''The official Blender website'''
|
'''The official Blender website'''
|
||||||
__idname__ = "help.blender_website"
|
bl_idname = "help.blender_website"
|
||||||
__label__ = "Blender Website"
|
bl_label = "Blender Website"
|
||||||
__URL__ = 'http://www.blender.org/'
|
_url = 'http://www.blender.org/'
|
||||||
|
|
||||||
class HELP_OT_blender_eshop(HelpOperator):
|
class HELP_OT_blender_eshop(HelpOperator):
|
||||||
'''Buy official Blender resources and merchandise online'''
|
'''Buy official Blender resources and merchandise online'''
|
||||||
__idname__ = "help.blender_eshop"
|
bl_idname = "help.blender_eshop"
|
||||||
__label__ = "Blender e-Shop"
|
bl_label = "Blender e-Shop"
|
||||||
__URL__ = 'http://www.blender3d.org/e-shop'
|
_url = 'http://www.blender3d.org/e-shop'
|
||||||
|
|
||||||
class HELP_OT_developer_community(HelpOperator):
|
class HELP_OT_developer_community(HelpOperator):
|
||||||
'''Get involved with Blender development'''
|
'''Get involved with Blender development'''
|
||||||
__idname__ = "help.developer_community"
|
bl_idname = "help.developer_community"
|
||||||
__label__ = "Developer Community"
|
bl_label = "Developer Community"
|
||||||
__URL__ = 'http://www.blender.org/community/get-involved/'
|
_url = 'http://www.blender.org/community/get-involved/'
|
||||||
|
|
||||||
class HELP_OT_user_community(HelpOperator):
|
class HELP_OT_user_community(HelpOperator):
|
||||||
'''Get involved with other Blender users'''
|
'''Get involved with other Blender users'''
|
||||||
__idname__ = "help.user_community"
|
bl_idname = "help.user_community"
|
||||||
__label__ = "User Community"
|
bl_label = "User Community"
|
||||||
__URL__ = 'http://www.blender.org/community/user-community/'
|
_url = 'http://www.blender.org/community/user-community/'
|
||||||
|
|
||||||
class HELP_OT_report_bug(HelpOperator):
|
class HELP_OT_report_bug(HelpOperator):
|
||||||
'''Report a bug in the Blender bug tracker'''
|
'''Report a bug in the Blender bug tracker'''
|
||||||
__idname__ = "help.report_bug"
|
bl_idname = "help.report_bug"
|
||||||
__label__ = "Report a Bug"
|
bl_label = "Report a Bug"
|
||||||
__URL__ = 'http://projects.blender.org/tracker/?atid=498&group_id=9&func=browse'
|
_url = 'http://projects.blender.org/tracker/?atid=498&group_id=9&func=browse'
|
||||||
|
|
||||||
class HELP_OT_operator_cheat_sheet(bpy.types.Operator):
|
class HELP_OT_operator_cheat_sheet(bpy.types.Operator):
|
||||||
__idname__ = "help.operator_cheat_sheet"
|
bl_idname = "help.operator_cheat_sheet"
|
||||||
__label__ = "Operator Cheat Sheet (new textblock)"
|
bl_label = "Operator Cheat Sheet (new textblock)"
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
op_strings = []
|
op_strings = []
|
||||||
tot = 0
|
tot = 0
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class LOGIC_PT_properties(bpy.types.Panel):
|
class LOGIC_PT_properties(bpy.types.Panel):
|
||||||
__space_type__ = 'LOGIC_EDITOR'
|
bl_space_type = 'LOGIC_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Properties"
|
bl_label = "Properties"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
ob = context.active_object
|
ob = context.active_object
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class NODE_HT_header(bpy.types.Header):
|
class NODE_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'NODE_EDITOR'
|
bl_space_type = 'NODE_EDITOR'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -48,7 +48,7 @@ class NODE_HT_header(bpy.types.Header):
|
|||||||
layout.itemR(snode, "backdrop")
|
layout.itemR(snode, "backdrop")
|
||||||
|
|
||||||
class NODE_MT_view(bpy.types.Menu):
|
class NODE_MT_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -65,7 +65,7 @@ class NODE_MT_view(bpy.types.Menu):
|
|||||||
layout.itemO("screen.screen_full_area")
|
layout.itemO("screen.screen_full_area")
|
||||||
|
|
||||||
class NODE_MT_select(bpy.types.Menu):
|
class NODE_MT_select(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -78,7 +78,7 @@ class NODE_MT_select(bpy.types.Menu):
|
|||||||
layout.itemO("node.select_linked_to")
|
layout.itemO("node.select_linked_to")
|
||||||
|
|
||||||
class NODE_MT_node(bpy.types.Menu):
|
class NODE_MT_node(bpy.types.Menu):
|
||||||
__label__ = "Node"
|
bl_label = "Node"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class OUTLINER_HT_header(bpy.types.Header):
|
class OUTLINER_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'OUTLINER'
|
bl_space_type = 'OUTLINER'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -41,7 +41,7 @@ class OUTLINER_HT_header(bpy.types.Header):
|
|||||||
row.itemL(text="No Keying Set active")
|
row.itemL(text="No Keying Set active")
|
||||||
|
|
||||||
class OUTLINER_MT_view(bpy.types.Menu):
|
class OUTLINER_MT_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -58,7 +58,7 @@ class OUTLINER_MT_view(bpy.types.Menu):
|
|||||||
col.itemO("outliner.show_hierarchy")
|
col.itemO("outliner.show_hierarchy")
|
||||||
|
|
||||||
class OUTLINER_MT_edit_datablocks(bpy.types.Menu):
|
class OUTLINER_MT_edit_datablocks(bpy.types.Menu):
|
||||||
__label__ = "Edit"
|
bl_label = "Edit"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -7,7 +7,7 @@ def act_strip(context):
|
|||||||
|
|
||||||
# Header
|
# Header
|
||||||
class SEQUENCER_HT_header(bpy.types.Header):
|
class SEQUENCER_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'SEQUENCE_EDITOR'
|
bl_space_type = 'SEQUENCE_EDITOR'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -38,7 +38,7 @@ class SEQUENCER_HT_header(bpy.types.Header):
|
|||||||
layout.itemR(st, "display_channel", text="Channel")
|
layout.itemR(st, "display_channel", text="Channel")
|
||||||
|
|
||||||
class SEQUENCER_MT_view(bpy.types.Menu):
|
class SEQUENCER_MT_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -105,7 +105,7 @@ class SEQUENCER_MT_view(bpy.types.Menu):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
class SEQUENCER_MT_select(bpy.types.Menu):
|
class SEQUENCER_MT_select(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -125,7 +125,7 @@ class SEQUENCER_MT_select(bpy.types.Menu):
|
|||||||
layout.itemO("sequencer.select_inverse")
|
layout.itemO("sequencer.select_inverse")
|
||||||
|
|
||||||
class SEQUENCER_MT_marker(bpy.types.Menu):
|
class SEQUENCER_MT_marker(bpy.types.Menu):
|
||||||
__label__ = "Marker (TODO)"
|
bl_label = "Marker (TODO)"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -143,7 +143,7 @@ class SEQUENCER_MT_marker(bpy.types.Menu):
|
|||||||
#layout.itemO("sequencer.sound_strip_add", text="Transform Markers") # toggle, will be rna - (sseq->flag & SEQ_MARKER_TRANS)
|
#layout.itemO("sequencer.sound_strip_add", text="Transform Markers") # toggle, will be rna - (sseq->flag & SEQ_MARKER_TRANS)
|
||||||
|
|
||||||
class SEQUENCER_MT_add(bpy.types.Menu):
|
class SEQUENCER_MT_add(bpy.types.Menu):
|
||||||
__label__ = "Add"
|
bl_label = "Add"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -160,7 +160,7 @@ class SEQUENCER_MT_add(bpy.types.Menu):
|
|||||||
layout.itemM("SEQUENCER_MT_add_effect")
|
layout.itemM("SEQUENCER_MT_add_effect")
|
||||||
|
|
||||||
class SEQUENCER_MT_add_effect(bpy.types.Menu):
|
class SEQUENCER_MT_add_effect(bpy.types.Menu):
|
||||||
__label__ = "Effect Strip..."
|
bl_label = "Effect Strip..."
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -183,7 +183,7 @@ class SEQUENCER_MT_add_effect(bpy.types.Menu):
|
|||||||
layout.item_enumO("sequencer.effect_strip_add", 'type', 'SPEED')
|
layout.item_enumO("sequencer.effect_strip_add", 'type', 'SPEED')
|
||||||
|
|
||||||
class SEQUENCER_MT_strip(bpy.types.Menu):
|
class SEQUENCER_MT_strip(bpy.types.Menu):
|
||||||
__label__ = "Strip"
|
bl_label = "Strip"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -252,21 +252,21 @@ class SEQUENCER_MT_strip(bpy.types.Menu):
|
|||||||
|
|
||||||
# Panels
|
# Panels
|
||||||
class SequencerButtonsPanel(bpy.types.Panel):
|
class SequencerButtonsPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'SEQUENCE_EDITOR'
|
bl_space_type = 'SEQUENCE_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.space_data.display_mode == 'SEQUENCER' and act_strip(context) != None
|
return context.space_data.display_mode == 'SEQUENCER' and act_strip(context) != None
|
||||||
|
|
||||||
class SequencerButtonsPanel_Output(bpy.types.Panel):
|
class SequencerButtonsPanel_Output(bpy.types.Panel):
|
||||||
__space_type__ = 'SEQUENCE_EDITOR'
|
bl_space_type = 'SEQUENCE_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.space_data.display_mode != 'SEQUENCER'
|
return context.space_data.display_mode != 'SEQUENCER'
|
||||||
|
|
||||||
class SEQUENCER_PT_edit(SequencerButtonsPanel):
|
class SEQUENCER_PT_edit(SequencerButtonsPanel):
|
||||||
__label__ = "Edit Strip"
|
bl_label = "Edit Strip"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -317,7 +317,7 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel):
|
|||||||
col.itemR(strip, "end_still", text="End")
|
col.itemR(strip, "end_still", text="End")
|
||||||
|
|
||||||
class SEQUENCER_PT_effect(SequencerButtonsPanel):
|
class SEQUENCER_PT_effect(SequencerButtonsPanel):
|
||||||
__label__ = "Effect Strip"
|
bl_label = "Effect Strip"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if context.space_data.display_mode != 'SEQUENCER':
|
if context.space_data.display_mode != 'SEQUENCER':
|
||||||
@ -404,7 +404,7 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel):
|
|||||||
col.itemR(strip, "rotation_end", text="End")
|
col.itemR(strip, "rotation_end", text="End")
|
||||||
|
|
||||||
class SEQUENCER_PT_input(SequencerButtonsPanel):
|
class SEQUENCER_PT_input(SequencerButtonsPanel):
|
||||||
__label__ = "Strip Input"
|
bl_label = "Strip Input"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if context.space_data.display_mode != 'SEQUENCER':
|
if context.space_data.display_mode != 'SEQUENCER':
|
||||||
@ -459,7 +459,7 @@ class SEQUENCER_PT_input(SequencerButtonsPanel):
|
|||||||
col.itemR(strip, "animation_end_offset", text="End")
|
col.itemR(strip, "animation_end_offset", text="End")
|
||||||
|
|
||||||
class SEQUENCER_PT_sound(SequencerButtonsPanel):
|
class SEQUENCER_PT_sound(SequencerButtonsPanel):
|
||||||
__label__ = "Sound"
|
bl_label = "Sound"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if context.space_data.display_mode != 'SEQUENCER':
|
if context.space_data.display_mode != 'SEQUENCER':
|
||||||
@ -490,7 +490,7 @@ class SEQUENCER_PT_sound(SequencerButtonsPanel):
|
|||||||
row.itemR(strip.sound, "caching")
|
row.itemR(strip.sound, "caching")
|
||||||
|
|
||||||
class SEQUENCER_PT_filter(SequencerButtonsPanel):
|
class SEQUENCER_PT_filter(SequencerButtonsPanel):
|
||||||
__label__ = "Filter"
|
bl_label = "Filter"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if context.space_data.display_mode != 'SEQUENCER':
|
if context.space_data.display_mode != 'SEQUENCER':
|
||||||
@ -539,7 +539,7 @@ class SEQUENCER_PT_filter(SequencerButtonsPanel):
|
|||||||
col.itemR(strip.color_balance, "inverse_gain", text="Inverse")
|
col.itemR(strip.color_balance, "inverse_gain", text="Inverse")
|
||||||
|
|
||||||
class SEQUENCER_PT_proxy(SequencerButtonsPanel):
|
class SEQUENCER_PT_proxy(SequencerButtonsPanel):
|
||||||
__label__ = "Proxy"
|
bl_label = "Proxy"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
if context.space_data.display_mode != 'SEQUENCER':
|
if context.space_data.display_mode != 'SEQUENCER':
|
||||||
@ -568,7 +568,7 @@ class SEQUENCER_PT_proxy(SequencerButtonsPanel):
|
|||||||
flow.itemR(strip.proxy, "file")
|
flow.itemR(strip.proxy, "file")
|
||||||
|
|
||||||
class SEQUENCER_PT_view(SequencerButtonsPanel_Output):
|
class SEQUENCER_PT_view(SequencerButtonsPanel_Output):
|
||||||
__label__ = "View Settings"
|
bl_label = "View Settings"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class TEXT_HT_header(bpy.types.Header):
|
class TEXT_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'TEXT_EDITOR'
|
bl_space_type = 'TEXT_EDITOR'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -49,9 +49,9 @@ class TEXT_HT_header(bpy.types.Header):
|
|||||||
row.itemO("text.run_script")
|
row.itemO("text.run_script")
|
||||||
|
|
||||||
class TEXT_PT_properties(bpy.types.Panel):
|
class TEXT_PT_properties(bpy.types.Panel):
|
||||||
__space_type__ = 'TEXT_EDITOR'
|
bl_space_type = 'TEXT_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Properties"
|
bl_label = "Properties"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -69,9 +69,9 @@ class TEXT_PT_properties(bpy.types.Panel):
|
|||||||
flow.itemR(st, "tab_width")
|
flow.itemR(st, "tab_width")
|
||||||
|
|
||||||
class TEXT_PT_find(bpy.types.Panel):
|
class TEXT_PT_find(bpy.types.Panel):
|
||||||
__space_type__ = 'TEXT_EDITOR'
|
bl_space_type = 'TEXT_EDITOR'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Find"
|
bl_label = "Find"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -101,7 +101,7 @@ class TEXT_PT_find(bpy.types.Panel):
|
|||||||
row.itemR(st, "find_all", text="All")
|
row.itemR(st, "find_all", text="All")
|
||||||
|
|
||||||
class TEXT_MT_text(bpy.types.Menu):
|
class TEXT_MT_text(bpy.types.Menu):
|
||||||
__label__ = "Text"
|
bl_label = "Text"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -151,7 +151,7 @@ class TEXT_MT_templates(bpy.types.Menu):
|
|||||||
'''
|
'''
|
||||||
Creates the menu items by scanning scripts/templates
|
Creates the menu items by scanning scripts/templates
|
||||||
'''
|
'''
|
||||||
__label__ = "Script Templates"
|
bl_label = "Script Templates"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
import os
|
import os
|
||||||
@ -175,7 +175,7 @@ class TEXT_MT_templates(bpy.types.Menu):
|
|||||||
|
|
||||||
|
|
||||||
class TEXT_MT_edit_view(bpy.types.Menu):
|
class TEXT_MT_edit_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -184,7 +184,7 @@ class TEXT_MT_edit_view(bpy.types.Menu):
|
|||||||
layout.item_enumO("text.move", "type", 'FILE_BOTTOM', text="Bottom of File")
|
layout.item_enumO("text.move", "type", 'FILE_BOTTOM', text="Bottom of File")
|
||||||
|
|
||||||
class TEXT_MT_edit_select(bpy.types.Menu):
|
class TEXT_MT_edit_select(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -193,7 +193,7 @@ class TEXT_MT_edit_select(bpy.types.Menu):
|
|||||||
layout.itemO("text.select_line")
|
layout.itemO("text.select_line")
|
||||||
|
|
||||||
class TEXT_MT_edit_markers(bpy.types.Menu):
|
class TEXT_MT_edit_markers(bpy.types.Menu):
|
||||||
__label__ = "Markers"
|
bl_label = "Markers"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -203,7 +203,7 @@ class TEXT_MT_edit_markers(bpy.types.Menu):
|
|||||||
layout.itemO("text.previous_marker")
|
layout.itemO("text.previous_marker")
|
||||||
|
|
||||||
class TEXT_MT_format(bpy.types.Menu):
|
class TEXT_MT_format(bpy.types.Menu):
|
||||||
__label__ = "Format"
|
bl_label = "Format"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -221,7 +221,7 @@ class TEXT_MT_format(bpy.types.Menu):
|
|||||||
layout.item_menu_enumO("text.convert_whitespace", "type")
|
layout.item_menu_enumO("text.convert_whitespace", "type")
|
||||||
|
|
||||||
class TEXT_MT_edit_to3d(bpy.types.Menu):
|
class TEXT_MT_edit_to3d(bpy.types.Menu):
|
||||||
__label__ = "Text To 3D Object"
|
bl_label = "Text To 3D Object"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -230,7 +230,7 @@ class TEXT_MT_edit_to3d(bpy.types.Menu):
|
|||||||
layout.item_booleanO("text.to_3d_object", "split_lines", True, text="One Object Per Line");
|
layout.item_booleanO("text.to_3d_object", "split_lines", True, text="One Object Per Line");
|
||||||
|
|
||||||
class TEXT_MT_edit(bpy.types.Menu):
|
class TEXT_MT_edit(bpy.types.Menu):
|
||||||
__label__ = "Edit"
|
bl_label = "Edit"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return (context.space_data.text)
|
return (context.space_data.text)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class TIME_HT_header(bpy.types.Header):
|
class TIME_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'TIMELINE'
|
bl_space_type = 'TIMELINE'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -64,7 +64,7 @@ class TIME_HT_header(bpy.types.Header):
|
|||||||
row.itemO("anim.delete_keyframe", text="", icon='ICON_KEY_DEHLT')
|
row.itemO("anim.delete_keyframe", text="", icon='ICON_KEY_DEHLT')
|
||||||
|
|
||||||
class TIME_MT_view(bpy.types.Menu):
|
class TIME_MT_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -78,7 +78,7 @@ class TIME_MT_view(bpy.types.Menu):
|
|||||||
layout.itemR(st, "only_selected")
|
layout.itemR(st, "only_selected")
|
||||||
|
|
||||||
class TIME_MT_frame(bpy.types.Menu):
|
class TIME_MT_frame(bpy.types.Menu):
|
||||||
__label__ = "Frame"
|
bl_label = "Frame"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -102,7 +102,7 @@ class TIME_MT_frame(bpy.types.Menu):
|
|||||||
sub.itemM("TIME_MT_autokey")
|
sub.itemM("TIME_MT_autokey")
|
||||||
|
|
||||||
class TIME_MT_playback(bpy.types.Menu):
|
class TIME_MT_playback(bpy.types.Menu):
|
||||||
__label__ = "Playback"
|
bl_label = "Playback"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -129,7 +129,7 @@ class TIME_MT_playback(bpy.types.Menu):
|
|||||||
layout.itemR(scene, "scrub_audio")
|
layout.itemR(scene, "scrub_audio")
|
||||||
|
|
||||||
class TIME_MT_autokey(bpy.types.Menu):
|
class TIME_MT_autokey(bpy.types.Menu):
|
||||||
__label__ = "Auto-Keyframing Mode"
|
bl_label = "Auto-Keyframing Mode"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class USERPREF_HT_header(bpy.types.Header):
|
class USERPREF_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'USER_PREFERENCES'
|
bl_space_type = 'USER_PREFERENCES'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -18,14 +18,14 @@ class USERPREF_HT_header(bpy.types.Header):
|
|||||||
layout.itemO("wm.keyconfig_export", "Export Key Configuration...")
|
layout.itemO("wm.keyconfig_export", "Export Key Configuration...")
|
||||||
|
|
||||||
class USERPREF_MT_view(bpy.types.Menu):
|
class USERPREF_MT_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
class USERPREF_PT_tabs(bpy.types.Panel):
|
class USERPREF_PT_tabs(bpy.types.Panel):
|
||||||
__space_type__ = 'USER_PREFERENCES'
|
bl_space_type = 'USER_PREFERENCES'
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -35,9 +35,9 @@ class USERPREF_PT_tabs(bpy.types.Panel):
|
|||||||
layout.itemR(userpref, "active_section", expand=True)
|
layout.itemR(userpref, "active_section", expand=True)
|
||||||
|
|
||||||
class USERPREF_PT_interface(bpy.types.Panel):
|
class USERPREF_PT_interface(bpy.types.Panel):
|
||||||
__space_type__ = 'USER_PREFERENCES'
|
bl_space_type = 'USER_PREFERENCES'
|
||||||
__label__ = "Interface"
|
bl_label = "Interface"
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
userpref = context.user_preferences
|
userpref = context.user_preferences
|
||||||
@ -119,9 +119,9 @@ class USERPREF_PT_interface(bpy.types.Panel):
|
|||||||
sub1.itemR(view, "open_sublevel_delay", text="Sub Level")
|
sub1.itemR(view, "open_sublevel_delay", text="Sub Level")
|
||||||
|
|
||||||
class USERPREF_PT_edit(bpy.types.Panel):
|
class USERPREF_PT_edit(bpy.types.Panel):
|
||||||
__space_type__ = 'USER_PREFERENCES'
|
bl_space_type = 'USER_PREFERENCES'
|
||||||
__label__ = "Edit"
|
bl_label = "Edit"
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
userpref = context.user_preferences
|
userpref = context.user_preferences
|
||||||
@ -222,9 +222,9 @@ class USERPREF_PT_edit(bpy.types.Panel):
|
|||||||
sub1.itemR(edit, "duplicate_particle", text="Particle")
|
sub1.itemR(edit, "duplicate_particle", text="Particle")
|
||||||
|
|
||||||
class USERPREF_PT_system(bpy.types.Panel):
|
class USERPREF_PT_system(bpy.types.Panel):
|
||||||
__space_type__ = 'USER_PREFERENCES'
|
bl_space_type = 'USER_PREFERENCES'
|
||||||
__label__ = "System"
|
bl_label = "System"
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
userpref = context.user_preferences
|
userpref = context.user_preferences
|
||||||
@ -313,9 +313,9 @@ class USERPREF_PT_system(bpy.types.Panel):
|
|||||||
sub1.itemR(system, "memory_cache_limit")
|
sub1.itemR(system, "memory_cache_limit")
|
||||||
|
|
||||||
class USERPREF_PT_file(bpy.types.Panel):
|
class USERPREF_PT_file(bpy.types.Panel):
|
||||||
__space_type__ = 'USER_PREFERENCES'
|
bl_space_type = 'USER_PREFERENCES'
|
||||||
__label__ = "Files"
|
bl_label = "Files"
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
userpref = context.user_preferences
|
userpref = context.user_preferences
|
||||||
@ -379,9 +379,9 @@ class USERPREF_PT_file(bpy.types.Panel):
|
|||||||
sub3.itemR(paths, "auto_save_time", text="Timer (mins)")
|
sub3.itemR(paths, "auto_save_time", text="Timer (mins)")
|
||||||
|
|
||||||
class USERPREF_PT_input(bpy.types.Panel):
|
class USERPREF_PT_input(bpy.types.Panel):
|
||||||
__space_type__ = 'USER_PREFERENCES'
|
bl_space_type = 'USER_PREFERENCES'
|
||||||
__label__ = "Input"
|
bl_label = "Input"
|
||||||
__show_header__ = False
|
bl_show_header = False
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
userpref = context.user_preferences
|
userpref = context.user_preferences
|
||||||
@ -556,9 +556,9 @@ bpy.types.register(USERPREF_PT_input)
|
|||||||
|
|
||||||
class WM_OT_keyconfig_export(bpy.types.Operator):
|
class WM_OT_keyconfig_export(bpy.types.Operator):
|
||||||
"Export key configuration to a python script."
|
"Export key configuration to a python script."
|
||||||
__idname__ = "wm.keyconfig_export"
|
bl_idname = "wm.keyconfig_export"
|
||||||
__label__ = "Export Key Configuration..."
|
bl_label = "Export Key Configuration..."
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path to write file to.")]
|
bpy.props.StringProperty(attr="path", name="File Path", description="File path to write file to.")]
|
||||||
|
|
||||||
def _string_value(self, value):
|
def _string_value(self, value):
|
||||||
@ -644,8 +644,8 @@ class WM_OT_keyconfig_export(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_keymap_edit(bpy.types.Operator):
|
class WM_OT_keymap_edit(bpy.types.Operator):
|
||||||
"Edit key map."
|
"Edit key map."
|
||||||
__idname__ = "wm.keymap_edit"
|
bl_idname = "wm.keymap_edit"
|
||||||
__label__ = "Edit Key Map"
|
bl_label = "Edit Key Map"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
wm = context.manager
|
wm = context.manager
|
||||||
@ -655,9 +655,9 @@ class WM_OT_keymap_edit(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_keymap_restore(bpy.types.Operator):
|
class WM_OT_keymap_restore(bpy.types.Operator):
|
||||||
"Restore key map"
|
"Restore key map"
|
||||||
__idname__ = "wm.keymap_restore"
|
bl_idname = "wm.keymap_restore"
|
||||||
__label__ = "Restore Key Map"
|
bl_label = "Restore Key Map"
|
||||||
__props__ = [bpy.props.BoolProperty(attr="all", name="All Keymaps", description="Restore all keymaps to default.")]
|
bl_props = [bpy.props.BoolProperty(attr="all", name="All Keymaps", description="Restore all keymaps to default.")]
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
wm = context.manager
|
wm = context.manager
|
||||||
@ -673,8 +673,8 @@ class WM_OT_keymap_restore(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_keyitem_add(bpy.types.Operator):
|
class WM_OT_keyitem_add(bpy.types.Operator):
|
||||||
"Add key map item."
|
"Add key map item."
|
||||||
__idname__ = "wm.keyitem_add"
|
bl_idname = "wm.keyitem_add"
|
||||||
__label__ = "Add Key Map Item"
|
bl_label = "Add Key Map Item"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
wm = context.manager
|
wm = context.manager
|
||||||
@ -684,8 +684,8 @@ class WM_OT_keyitem_add(bpy.types.Operator):
|
|||||||
|
|
||||||
class WM_OT_keyitem_remove(bpy.types.Operator):
|
class WM_OT_keyitem_remove(bpy.types.Operator):
|
||||||
"Remove key map item."
|
"Remove key map item."
|
||||||
__idname__ = "wm.keyitem_remove"
|
bl_idname = "wm.keyitem_remove"
|
||||||
__label__ = "Remove Key Map Item"
|
bl_label = "Remove Key Map Item"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
wm = context.manager
|
wm = context.manager
|
||||||
|
@ -6,7 +6,7 @@ import dynamic_menu
|
|||||||
# ********** Header **********
|
# ********** Header **********
|
||||||
|
|
||||||
class VIEW3D_HT_header(bpy.types.Header):
|
class VIEW3D_HT_header(bpy.types.Header):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -46,7 +46,7 @@ class VIEW3D_HT_header(bpy.types.Header):
|
|||||||
# ********** Utilities **********
|
# ********** Utilities **********
|
||||||
|
|
||||||
class VIEW3D_MT_showhide(bpy.types.Menu):
|
class VIEW3D_MT_showhide(bpy.types.Menu):
|
||||||
__label__ = "Show/Hide"
|
bl_label = "Show/Hide"
|
||||||
_operator_name = ""
|
_operator_name = ""
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
@ -57,7 +57,7 @@ class VIEW3D_MT_showhide(bpy.types.Menu):
|
|||||||
layout.item_booleanO("%s.hide" % self._operator_name, "unselected", True, text="Hide Unselected")
|
layout.item_booleanO("%s.hide" % self._operator_name, "unselected", True, text="Hide Unselected")
|
||||||
|
|
||||||
class VIEW3D_MT_snap(bpy.types.Menu):
|
class VIEW3D_MT_snap(bpy.types.Menu):
|
||||||
__label__ = "Snap"
|
bl_label = "Snap"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -75,7 +75,7 @@ class VIEW3D_MT_snap(bpy.types.Menu):
|
|||||||
# ********** View menus **********
|
# ********** View menus **********
|
||||||
|
|
||||||
class VIEW3D_MT_view(bpy.types.Menu):
|
class VIEW3D_MT_view(bpy.types.Menu):
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -127,7 +127,7 @@ class VIEW3D_MT_view(bpy.types.Menu):
|
|||||||
|
|
||||||
layout.itemO("screen.animation_play", text="Playback Animation", icon='ICON_PLAY')
|
layout.itemO("screen.animation_play", text="Playback Animation", icon='ICON_PLAY')
|
||||||
class VIEW3D_MT_view_navigation(bpy.types.Menu):
|
class VIEW3D_MT_view_navigation(bpy.types.Menu):
|
||||||
__label__ = "Navigation"
|
bl_label = "Navigation"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -148,7 +148,7 @@ class VIEW3D_MT_view_navigation(bpy.types.Menu):
|
|||||||
layout.itemO("view3d.fly")
|
layout.itemO("view3d.fly")
|
||||||
|
|
||||||
class VIEW3D_MT_view_align(bpy.types.Menu):
|
class VIEW3D_MT_view_align(bpy.types.Menu):
|
||||||
__label__ = "Align View"
|
bl_label = "Align View"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -158,7 +158,7 @@ class VIEW3D_MT_view_align(bpy.types.Menu):
|
|||||||
layout.itemO("view3d.view_center")
|
layout.itemO("view3d.view_center")
|
||||||
|
|
||||||
class VIEW3D_MT_view_cameras(bpy.types.Menu):
|
class VIEW3D_MT_view_cameras(bpy.types.Menu):
|
||||||
__label__ = "Cameras"
|
bl_label = "Cameras"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -169,7 +169,7 @@ class VIEW3D_MT_view_cameras(bpy.types.Menu):
|
|||||||
# ********** Select menus, suffix from context.mode **********
|
# ********** Select menus, suffix from context.mode **********
|
||||||
|
|
||||||
class VIEW3D_MT_select_object(bpy.types.Menu):
|
class VIEW3D_MT_select_object(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -188,7 +188,7 @@ class VIEW3D_MT_select_object(bpy.types.Menu):
|
|||||||
layout.itemO("object.select_pattern", text="Select Pattern...")
|
layout.itemO("object.select_pattern", text="Select Pattern...")
|
||||||
|
|
||||||
class VIEW3D_MT_select_pose(bpy.types.Menu):
|
class VIEW3D_MT_select_pose(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -218,7 +218,7 @@ class VIEW3D_MT_select_pose(bpy.types.Menu):
|
|||||||
props.direction = 'CHILD'
|
props.direction = 'CHILD'
|
||||||
|
|
||||||
class VIEW3D_MT_select_particle(bpy.types.Menu):
|
class VIEW3D_MT_select_particle(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -236,7 +236,7 @@ class VIEW3D_MT_select_particle(bpy.types.Menu):
|
|||||||
layout.itemO("particle.select_less")
|
layout.itemO("particle.select_less")
|
||||||
|
|
||||||
class VIEW3D_MT_select_edit_mesh(bpy.types.Menu):
|
class VIEW3D_MT_select_edit_mesh(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -281,7 +281,7 @@ class VIEW3D_MT_select_edit_mesh(bpy.types.Menu):
|
|||||||
layout.itemO("mesh.region_to_loop")
|
layout.itemO("mesh.region_to_loop")
|
||||||
|
|
||||||
class VIEW3D_MT_select_edit_curve(bpy.types.Menu):
|
class VIEW3D_MT_select_edit_curve(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -309,7 +309,7 @@ class VIEW3D_MT_select_edit_curve(bpy.types.Menu):
|
|||||||
layout.itemO("curve.select_less")
|
layout.itemO("curve.select_less")
|
||||||
|
|
||||||
class VIEW3D_MT_select_edit_surface(bpy.types.Menu):
|
class VIEW3D_MT_select_edit_surface(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -334,7 +334,7 @@ class VIEW3D_MT_select_edit_surface(bpy.types.Menu):
|
|||||||
layout.itemO("curve.select_less")
|
layout.itemO("curve.select_less")
|
||||||
|
|
||||||
class VIEW3D_MT_select_edit_metaball(bpy.types.Menu):
|
class VIEW3D_MT_select_edit_metaball(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -351,7 +351,7 @@ class VIEW3D_MT_select_edit_metaball(bpy.types.Menu):
|
|||||||
layout.itemO("mball.select_random_metaelems")
|
layout.itemO("mball.select_random_metaelems")
|
||||||
|
|
||||||
class VIEW3D_MT_select_edit_lattice(bpy.types.Menu):
|
class VIEW3D_MT_select_edit_lattice(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -363,7 +363,7 @@ class VIEW3D_MT_select_edit_lattice(bpy.types.Menu):
|
|||||||
layout.itemO("lattice.select_all_toggle", text="Select/Deselect All")
|
layout.itemO("lattice.select_all_toggle", text="Select/Deselect All")
|
||||||
|
|
||||||
class VIEW3D_MT_select_edit_armature(bpy.types.Menu):
|
class VIEW3D_MT_select_edit_armature(bpy.types.Menu):
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -391,7 +391,7 @@ class VIEW3D_MT_select_edit_armature(bpy.types.Menu):
|
|||||||
props.direction = 'CHILD'
|
props.direction = 'CHILD'
|
||||||
|
|
||||||
class VIEW3D_MT_select_face(bpy.types.Menu):# XXX no matching enum
|
class VIEW3D_MT_select_face(bpy.types.Menu):# XXX no matching enum
|
||||||
__label__ = "Select"
|
bl_label = "Select"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -401,8 +401,8 @@ class VIEW3D_MT_select_face(bpy.types.Menu):# XXX no matching enum
|
|||||||
# ********** Object menu **********
|
# ********** Object menu **********
|
||||||
|
|
||||||
class VIEW3D_MT_object(bpy.types.Menu):
|
class VIEW3D_MT_object(bpy.types.Menu):
|
||||||
__context__ = "objectmode"
|
bl_context = "objectmode"
|
||||||
__label__ = "Object"
|
bl_label = "Object"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -444,7 +444,7 @@ class VIEW3D_MT_object(bpy.types.Menu):
|
|||||||
layout.item_menu_enumO("object.convert", "target")
|
layout.item_menu_enumO("object.convert", "target")
|
||||||
|
|
||||||
class VIEW3D_MT_object_clear(bpy.types.Menu):
|
class VIEW3D_MT_object_clear(bpy.types.Menu):
|
||||||
__label__ = "Clear"
|
bl_label = "Clear"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -455,7 +455,7 @@ class VIEW3D_MT_object_clear(bpy.types.Menu):
|
|||||||
layout.itemO("object.origin_clear", text="Origin")
|
layout.itemO("object.origin_clear", text="Origin")
|
||||||
|
|
||||||
class VIEW3D_MT_object_apply(bpy.types.Menu):
|
class VIEW3D_MT_object_apply(bpy.types.Menu):
|
||||||
__label__ = "Apply"
|
bl_label = "Apply"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -469,7 +469,7 @@ class VIEW3D_MT_object_apply(bpy.types.Menu):
|
|||||||
|
|
||||||
|
|
||||||
class VIEW3D_MT_object_parent(bpy.types.Menu):
|
class VIEW3D_MT_object_parent(bpy.types.Menu):
|
||||||
__label__ = "Parent"
|
bl_label = "Parent"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -478,7 +478,7 @@ class VIEW3D_MT_object_parent(bpy.types.Menu):
|
|||||||
layout.itemO("object.parent_clear", text="Clear")
|
layout.itemO("object.parent_clear", text="Clear")
|
||||||
|
|
||||||
class VIEW3D_MT_object_track(bpy.types.Menu):
|
class VIEW3D_MT_object_track(bpy.types.Menu):
|
||||||
__label__ = "Track"
|
bl_label = "Track"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -487,7 +487,7 @@ class VIEW3D_MT_object_track(bpy.types.Menu):
|
|||||||
layout.itemO("object.track_clear", text="Clear")
|
layout.itemO("object.track_clear", text="Clear")
|
||||||
|
|
||||||
class VIEW3D_MT_object_group(bpy.types.Menu):
|
class VIEW3D_MT_object_group(bpy.types.Menu):
|
||||||
__label__ = "Group"
|
bl_label = "Group"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -501,7 +501,7 @@ class VIEW3D_MT_object_group(bpy.types.Menu):
|
|||||||
layout.itemO("group.objects_remove_active")
|
layout.itemO("group.objects_remove_active")
|
||||||
|
|
||||||
class VIEW3D_MT_object_constraints(bpy.types.Menu):
|
class VIEW3D_MT_object_constraints(bpy.types.Menu):
|
||||||
__label__ = "Constraints"
|
bl_label = "Constraints"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -510,7 +510,7 @@ class VIEW3D_MT_object_constraints(bpy.types.Menu):
|
|||||||
layout.itemO("object.constraints_clear")
|
layout.itemO("object.constraints_clear")
|
||||||
|
|
||||||
class VIEW3D_MT_object_showhide(bpy.types.Menu):
|
class VIEW3D_MT_object_showhide(bpy.types.Menu):
|
||||||
__label__ = "Show/Hide"
|
bl_label = "Show/Hide"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -520,7 +520,7 @@ class VIEW3D_MT_object_showhide(bpy.types.Menu):
|
|||||||
layout.item_booleanO("object.restrictview_set", "unselected", True, text="Hide Unselected")
|
layout.item_booleanO("object.restrictview_set", "unselected", True, text="Hide Unselected")
|
||||||
|
|
||||||
class VIEW3D_MT_make_single_user(bpy.types.Menu):
|
class VIEW3D_MT_make_single_user(bpy.types.Menu):
|
||||||
__label__ = "Make Single User"
|
bl_label = "Make Single User"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -543,7 +543,7 @@ class VIEW3D_MT_make_single_user(bpy.types.Menu):
|
|||||||
# ********** Vertex paint menu **********
|
# ********** Vertex paint menu **********
|
||||||
|
|
||||||
class VIEW3D_MT_paint_vertex(bpy.types.Menu):
|
class VIEW3D_MT_paint_vertex(bpy.types.Menu):
|
||||||
__label__ = "Paint"
|
bl_label = "Paint"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -557,7 +557,7 @@ class VIEW3D_MT_paint_vertex(bpy.types.Menu):
|
|||||||
# ********** Sculpt menu **********
|
# ********** Sculpt menu **********
|
||||||
|
|
||||||
class VIEW3D_MT_sculpt(bpy.types.Menu):
|
class VIEW3D_MT_sculpt(bpy.types.Menu):
|
||||||
__label__ = "Sculpt"
|
bl_label = "Sculpt"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -592,7 +592,7 @@ class VIEW3D_MT_sculpt(bpy.types.Menu):
|
|||||||
# ********** Particle menu **********
|
# ********** Particle menu **********
|
||||||
|
|
||||||
class VIEW3D_MT_particle(bpy.types.Menu):
|
class VIEW3D_MT_particle(bpy.types.Menu):
|
||||||
__label__ = "Particle"
|
bl_label = "Particle"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -621,7 +621,7 @@ class VIEW3D_MT_particle_showhide(VIEW3D_MT_showhide):
|
|||||||
# ********** Pose Menu **********
|
# ********** Pose Menu **********
|
||||||
|
|
||||||
class VIEW3D_MT_pose(bpy.types.Menu):
|
class VIEW3D_MT_pose(bpy.types.Menu):
|
||||||
__label__ = "Pose"
|
bl_label = "Pose"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -680,7 +680,7 @@ class VIEW3D_MT_pose(bpy.types.Menu):
|
|||||||
layout.item_menu_enumO("pose.flags_set", 'mode', text="Bone Settings")
|
layout.item_menu_enumO("pose.flags_set", 'mode', text="Bone Settings")
|
||||||
|
|
||||||
class VIEW3D_MT_pose_transform(bpy.types.Menu):
|
class VIEW3D_MT_pose_transform(bpy.types.Menu):
|
||||||
__label__ = "Clear Transform"
|
bl_label = "Clear Transform"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -694,7 +694,7 @@ class VIEW3D_MT_pose_transform(bpy.types.Menu):
|
|||||||
layout.itemL(text="Origin")
|
layout.itemL(text="Origin")
|
||||||
|
|
||||||
class VIEW3D_MT_pose_pose(bpy.types.Menu):
|
class VIEW3D_MT_pose_pose(bpy.types.Menu):
|
||||||
__label__ = "Pose Library"
|
bl_label = "Pose Library"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -708,7 +708,7 @@ class VIEW3D_MT_pose_pose(bpy.types.Menu):
|
|||||||
layout.itemO("poselib.pose_remove", text="Remove Pose...")
|
layout.itemO("poselib.pose_remove", text="Remove Pose...")
|
||||||
|
|
||||||
class VIEW3D_MT_pose_motion(bpy.types.Menu):
|
class VIEW3D_MT_pose_motion(bpy.types.Menu):
|
||||||
__label__ = "Motion Paths"
|
bl_label = "Motion Paths"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -717,7 +717,7 @@ class VIEW3D_MT_pose_motion(bpy.types.Menu):
|
|||||||
layout.itemO("pose.paths_clear", text="Clear")
|
layout.itemO("pose.paths_clear", text="Clear")
|
||||||
|
|
||||||
class VIEW3D_MT_pose_group(bpy.types.Menu):
|
class VIEW3D_MT_pose_group(bpy.types.Menu):
|
||||||
__label__ = "Bone Groups"
|
bl_label = "Bone Groups"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -731,7 +731,7 @@ class VIEW3D_MT_pose_group(bpy.types.Menu):
|
|||||||
|
|
||||||
|
|
||||||
class VIEW3D_MT_pose_ik(bpy.types.Menu):
|
class VIEW3D_MT_pose_ik(bpy.types.Menu):
|
||||||
__label__ = "Inverse Kinematics"
|
bl_label = "Inverse Kinematics"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -740,7 +740,7 @@ class VIEW3D_MT_pose_ik(bpy.types.Menu):
|
|||||||
layout.itemO("pose.ik_clear")
|
layout.itemO("pose.ik_clear")
|
||||||
|
|
||||||
class VIEW3D_MT_pose_constraints(bpy.types.Menu):
|
class VIEW3D_MT_pose_constraints(bpy.types.Menu):
|
||||||
__label__ = "Constraints"
|
bl_label = "Constraints"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -755,7 +755,7 @@ class VIEW3D_MT_pose_showhide(VIEW3D_MT_showhide):
|
|||||||
|
|
||||||
# Edit MESH
|
# Edit MESH
|
||||||
class VIEW3D_MT_edit_mesh(bpy.types.Menu):
|
class VIEW3D_MT_edit_mesh(bpy.types.Menu):
|
||||||
__label__ = "Mesh"
|
bl_label = "Mesh"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -798,7 +798,7 @@ class VIEW3D_MT_edit_mesh(bpy.types.Menu):
|
|||||||
|
|
||||||
# Only used by the menu
|
# Only used by the menu
|
||||||
class VIEW3D_MT_edit_mesh_specials(bpy.types.Menu):
|
class VIEW3D_MT_edit_mesh_specials(bpy.types.Menu):
|
||||||
__label__ = "Specials"
|
bl_label = "Specials"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -822,7 +822,7 @@ class VIEW3D_MT_edit_mesh_specials(bpy.types.Menu):
|
|||||||
layout.itemO("mesh.select_vertex_path")
|
layout.itemO("mesh.select_vertex_path")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_mesh_vertices(bpy.types.Menu):
|
class VIEW3D_MT_edit_mesh_vertices(bpy.types.Menu):
|
||||||
__label__ = "Vertices"
|
bl_label = "Vertices"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -846,7 +846,7 @@ class VIEW3D_MT_edit_mesh_vertices(bpy.types.Menu):
|
|||||||
layout.itemO("mesh.shape_propagate_to_all")
|
layout.itemO("mesh.shape_propagate_to_all")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_mesh_edges(bpy.types.Menu):
|
class VIEW3D_MT_edit_mesh_edges(bpy.types.Menu):
|
||||||
__label__ = "Edges"
|
bl_label = "Edges"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -885,7 +885,7 @@ class VIEW3D_MT_edit_mesh_edges(bpy.types.Menu):
|
|||||||
|
|
||||||
|
|
||||||
class VIEW3D_MT_edit_mesh_faces(dynamic_menu.DynMenu):
|
class VIEW3D_MT_edit_mesh_faces(dynamic_menu.DynMenu):
|
||||||
__label__ = "Faces"
|
bl_label = "Faces"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -925,7 +925,7 @@ class VIEW3D_MT_edit_mesh_faces(dynamic_menu.DynMenu):
|
|||||||
|
|
||||||
|
|
||||||
class VIEW3D_MT_edit_mesh_normals(bpy.types.Menu):
|
class VIEW3D_MT_edit_mesh_normals(bpy.types.Menu):
|
||||||
__label__ = "Normals"
|
bl_label = "Normals"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -974,12 +974,12 @@ def draw_curve(self, context):
|
|||||||
layout.itemM("VIEW3D_MT_edit_curve_showhide")
|
layout.itemM("VIEW3D_MT_edit_curve_showhide")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_curve(bpy.types.Menu):
|
class VIEW3D_MT_edit_curve(bpy.types.Menu):
|
||||||
__label__ = "Curve"
|
bl_label = "Curve"
|
||||||
|
|
||||||
draw = draw_curve
|
draw = draw_curve
|
||||||
|
|
||||||
class VIEW3D_MT_edit_curve_ctrlpoints(bpy.types.Menu):
|
class VIEW3D_MT_edit_curve_ctrlpoints(bpy.types.Menu):
|
||||||
__label__ = "Control Points"
|
bl_label = "Control Points"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -996,7 +996,7 @@ class VIEW3D_MT_edit_curve_ctrlpoints(bpy.types.Menu):
|
|||||||
layout.item_menu_enumO("curve.handle_type_set", "type")
|
layout.item_menu_enumO("curve.handle_type_set", "type")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_curve_segments(bpy.types.Menu):
|
class VIEW3D_MT_edit_curve_segments(bpy.types.Menu):
|
||||||
__label__ = "Segments"
|
bl_label = "Segments"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1009,13 +1009,13 @@ class VIEW3D_MT_edit_curve_showhide(VIEW3D_MT_showhide):
|
|||||||
|
|
||||||
# Edit SURFACE
|
# Edit SURFACE
|
||||||
class VIEW3D_MT_edit_surface(bpy.types.Menu):
|
class VIEW3D_MT_edit_surface(bpy.types.Menu):
|
||||||
__label__ = "Surface"
|
bl_label = "Surface"
|
||||||
|
|
||||||
draw = draw_curve
|
draw = draw_curve
|
||||||
|
|
||||||
# Edit TEXT
|
# Edit TEXT
|
||||||
class VIEW3D_MT_edit_text(bpy.types.Menu):
|
class VIEW3D_MT_edit_text(bpy.types.Menu):
|
||||||
__label__ = "Text"
|
bl_label = "Text"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1027,7 +1027,7 @@ class VIEW3D_MT_edit_text(bpy.types.Menu):
|
|||||||
layout.itemm("view3d_mt_edit_text_chars")
|
layout.itemm("view3d_mt_edit_text_chars")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_text_chars(bpy.types.Menu):
|
class VIEW3D_MT_edit_text_chars(bpy.types.Menu):
|
||||||
__label__ = "Special Characters"
|
bl_label = "Special Characters"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1061,7 +1061,7 @@ class VIEW3D_MT_edit_text_chars(bpy.types.Menu):
|
|||||||
|
|
||||||
# Edit META
|
# Edit META
|
||||||
class VIEW3D_MT_edit_meta(bpy.types.Menu):
|
class VIEW3D_MT_edit_meta(bpy.types.Menu):
|
||||||
__label__ = "Metaball"
|
bl_label = "Metaball"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1090,7 +1090,7 @@ class VIEW3D_MT_edit_meta(bpy.types.Menu):
|
|||||||
layout.itemM("VIEW3D_MT_edit_meta_showhide")
|
layout.itemM("VIEW3D_MT_edit_meta_showhide")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_meta_showhide(bpy.types.Menu):
|
class VIEW3D_MT_edit_meta_showhide(bpy.types.Menu):
|
||||||
__label__ = "Show/Hide"
|
bl_label = "Show/Hide"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1101,7 +1101,7 @@ class VIEW3D_MT_edit_meta_showhide(bpy.types.Menu):
|
|||||||
|
|
||||||
# Edit LATTICE
|
# Edit LATTICE
|
||||||
class VIEW3D_MT_edit_lattice(bpy.types.Menu):
|
class VIEW3D_MT_edit_lattice(bpy.types.Menu):
|
||||||
__label__ = "Lattice"
|
bl_label = "Lattice"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1121,7 +1121,7 @@ class VIEW3D_MT_edit_lattice(bpy.types.Menu):
|
|||||||
|
|
||||||
# Edit ARMATURE
|
# Edit ARMATURE
|
||||||
class VIEW3D_MT_edit_armature(bpy.types.Menu):
|
class VIEW3D_MT_edit_armature(bpy.types.Menu):
|
||||||
__label__ = "Armature"
|
bl_label = "Armature"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1178,7 +1178,7 @@ class VIEW3D_MT_edit_armature(bpy.types.Menu):
|
|||||||
layout.item_menu_enumO("armature.flags_set", "mode", text="Bone Settings")
|
layout.item_menu_enumO("armature.flags_set", "mode", text="Bone Settings")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_armature_parent(bpy.types.Menu):
|
class VIEW3D_MT_edit_armature_parent(bpy.types.Menu):
|
||||||
__label__ = "Parent"
|
bl_label = "Parent"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1187,7 +1187,7 @@ class VIEW3D_MT_edit_armature_parent(bpy.types.Menu):
|
|||||||
layout.itemO("armature.parent_clear", text="Clear")
|
layout.itemO("armature.parent_clear", text="Clear")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_armature_roll(bpy.types.Menu):
|
class VIEW3D_MT_edit_armature_roll(bpy.types.Menu):
|
||||||
__label__ = "Bone Roll"
|
bl_label = "Bone Roll"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -1202,9 +1202,9 @@ class VIEW3D_MT_edit_armature_roll(bpy.types.Menu):
|
|||||||
# ********** Panel **********
|
# ********** Panel **********
|
||||||
|
|
||||||
class VIEW3D_PT_3dview_properties(bpy.types.Panel):
|
class VIEW3D_PT_3dview_properties(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "View"
|
bl_label = "View"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
view = context.space_data
|
view = context.space_data
|
||||||
@ -1235,10 +1235,10 @@ class VIEW3D_PT_3dview_properties(bpy.types.Panel):
|
|||||||
layout.column().itemR(scene, "cursor_location", text="3D Cursor:")
|
layout.column().itemR(scene, "cursor_location", text="3D Cursor:")
|
||||||
|
|
||||||
class VIEW3D_PT_3dview_display(bpy.types.Panel):
|
class VIEW3D_PT_3dview_display(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Display"
|
bl_label = "Display"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
view = context.space_data
|
view = context.space_data
|
||||||
@ -1278,9 +1278,9 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel):
|
|||||||
# col.itemR(view, "box_clip")
|
# col.itemR(view, "box_clip")
|
||||||
|
|
||||||
class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
|
class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Mesh Display"
|
bl_label = "Mesh Display"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
editmesh = context.mode == 'EDIT_MESH'
|
editmesh = context.mode == 'EDIT_MESH'
|
||||||
@ -1313,9 +1313,9 @@ class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
|
|||||||
col.itemR(mesh, "draw_face_area")
|
col.itemR(mesh, "draw_face_area")
|
||||||
|
|
||||||
class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
|
class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Curve Display"
|
bl_label = "Curve Display"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
editmesh = context.mode == 'EDIT_CURVE'
|
editmesh = context.mode == 'EDIT_CURVE'
|
||||||
@ -1333,10 +1333,10 @@ class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
|
|||||||
col.itemR(context.scene.tool_settings, "normal_size", text="Normal Size")
|
col.itemR(context.scene.tool_settings, "normal_size", text="Normal Size")
|
||||||
|
|
||||||
class VIEW3D_PT_background_image(bpy.types.Panel):
|
class VIEW3D_PT_background_image(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Background Image"
|
bl_label = "Background Image"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
view = context.space_data
|
view = context.space_data
|
||||||
@ -1371,10 +1371,10 @@ class VIEW3D_PT_background_image(bpy.types.Panel):
|
|||||||
col.itemR(bg, "offset_y", text="Y")
|
col.itemR(bg, "offset_y", text="Y")
|
||||||
|
|
||||||
class VIEW3D_PT_transform_orientations(bpy.types.Panel):
|
class VIEW3D_PT_transform_orientations(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Transform Orientations"
|
bl_label = "Transform Orientations"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
view = context.space_data
|
view = context.space_data
|
||||||
@ -1397,10 +1397,10 @@ class VIEW3D_PT_transform_orientations(bpy.types.Panel):
|
|||||||
col.itemO("tfm.delete_orientation", text="Delete")
|
col.itemO("tfm.delete_orientation", text="Delete")
|
||||||
|
|
||||||
class VIEW3D_PT_etch_a_ton(bpy.types.Panel):
|
class VIEW3D_PT_etch_a_ton(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'UI'
|
bl_region_type = 'UI'
|
||||||
__label__ = "Skeleton Sketching"
|
bl_label = "Skeleton Sketching"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
scene = context.space_data
|
scene = context.space_data
|
||||||
@ -1442,11 +1442,11 @@ class VIEW3D_PT_etch_a_ton(bpy.types.Panel):
|
|||||||
|
|
||||||
class OBJECT_OT_select_pattern(bpy.types.Operator):
|
class OBJECT_OT_select_pattern(bpy.types.Operator):
|
||||||
'''Select object matching a naming pattern.'''
|
'''Select object matching a naming pattern.'''
|
||||||
__idname__ = "object.select_pattern"
|
bl_idname = "object.select_pattern"
|
||||||
__label__ = "Select Pattern"
|
bl_label = "Select Pattern"
|
||||||
__register__ = True
|
bl_register = True
|
||||||
__undo__ = True
|
bl_undo = True
|
||||||
__props__ = [
|
bl_props = [
|
||||||
bpy.props.StringProperty(attr="pattern", name="Pattern", description="Name filter using '*' and '?' wildcard chars", maxlen= 32, default= "*"),
|
bpy.props.StringProperty(attr="pattern", name="Pattern", description="Name filter using '*' and '?' wildcard chars", maxlen= 32, default= "*"),
|
||||||
bpy.props.BoolProperty(attr="case_sensitive", name="Case Sensitive", description="Do a case sensitive compare", default= False),
|
bpy.props.BoolProperty(attr="case_sensitive", name="Case Sensitive", description="Do a case sensitive compare", default= False),
|
||||||
bpy.props.BoolProperty(attr="extend", name="Extend", description="Extend the existing selection", default= True),
|
bpy.props.BoolProperty(attr="extend", name="Extend", description="Extend the existing selection", default= True),
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
class View3DPanel(bpy.types.Panel):
|
class View3DPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
|
|
||||||
# ********** default tools for objectmode ****************
|
# ********** default tools for objectmode ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_objectmode(View3DPanel):
|
class VIEW3D_PT_tools_objectmode(View3DPanel):
|
||||||
__context__ = "objectmode"
|
bl_context = "objectmode"
|
||||||
__label__ = "Object Tools"
|
bl_label = "Object Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -53,8 +53,8 @@ class VIEW3D_PT_tools_objectmode(View3DPanel):
|
|||||||
# ********** default tools for editmode_mesh ****************
|
# ********** default tools for editmode_mesh ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_meshedit(View3DPanel):
|
class VIEW3D_PT_tools_meshedit(View3DPanel):
|
||||||
__context__ = "mesh_edit"
|
bl_context = "mesh_edit"
|
||||||
__label__ = "Mesh Tools"
|
bl_label = "Mesh Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -104,8 +104,8 @@ class VIEW3D_PT_tools_meshedit(View3DPanel):
|
|||||||
col.itemO("screen.redo_last", text="Tweak...")
|
col.itemO("screen.redo_last", text="Tweak...")
|
||||||
|
|
||||||
class VIEW3D_PT_tools_meshedit_options(View3DPanel):
|
class VIEW3D_PT_tools_meshedit_options(View3DPanel):
|
||||||
__context__ = "mesh_edit"
|
bl_context = "mesh_edit"
|
||||||
__label__ = "Mesh Options"
|
bl_label = "Mesh Options"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -118,8 +118,8 @@ class VIEW3D_PT_tools_meshedit_options(View3DPanel):
|
|||||||
# ********** default tools for editmode_curve ****************
|
# ********** default tools for editmode_curve ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_curveedit(View3DPanel):
|
class VIEW3D_PT_tools_curveedit(View3DPanel):
|
||||||
__context__ = "curve_edit"
|
bl_context = "curve_edit"
|
||||||
__label__ = "Curve Tools"
|
bl_label = "Curve Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -165,8 +165,8 @@ class VIEW3D_PT_tools_curveedit(View3DPanel):
|
|||||||
# ********** default tools for editmode_surface ****************
|
# ********** default tools for editmode_surface ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_surfaceedit(View3DPanel):
|
class VIEW3D_PT_tools_surfaceedit(View3DPanel):
|
||||||
__context__ = "surface_edit"
|
bl_context = "surface_edit"
|
||||||
__label__ = "Surface Tools"
|
bl_label = "Surface Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -204,8 +204,8 @@ class VIEW3D_PT_tools_surfaceedit(View3DPanel):
|
|||||||
# ********** default tools for editmode_text ****************
|
# ********** default tools for editmode_text ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_textedit(View3DPanel):
|
class VIEW3D_PT_tools_textedit(View3DPanel):
|
||||||
__context__ = "text_edit"
|
bl_context = "text_edit"
|
||||||
__label__ = "Text Tools"
|
bl_label = "Text Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -230,8 +230,8 @@ class VIEW3D_PT_tools_textedit(View3DPanel):
|
|||||||
# ********** default tools for editmode_armature ****************
|
# ********** default tools for editmode_armature ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_armatureedit(View3DPanel):
|
class VIEW3D_PT_tools_armatureedit(View3DPanel):
|
||||||
__context__ = "armature_edit"
|
bl_context = "armature_edit"
|
||||||
__label__ = "Armature Tools"
|
bl_label = "Armature Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -265,8 +265,8 @@ class VIEW3D_PT_tools_armatureedit(View3DPanel):
|
|||||||
col.itemO("screen.redo_last", text="Tweak...")
|
col.itemO("screen.redo_last", text="Tweak...")
|
||||||
|
|
||||||
class VIEW3D_PT_tools_armatureedit_options(View3DPanel):
|
class VIEW3D_PT_tools_armatureedit_options(View3DPanel):
|
||||||
__context__ = "armature_edit"
|
bl_context = "armature_edit"
|
||||||
__label__ = "Armature Options"
|
bl_label = "Armature Options"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -279,8 +279,8 @@ class VIEW3D_PT_tools_armatureedit_options(View3DPanel):
|
|||||||
# ********** default tools for editmode_mball ****************
|
# ********** default tools for editmode_mball ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_mballedit(View3DPanel):
|
class VIEW3D_PT_tools_mballedit(View3DPanel):
|
||||||
__context__ = "mball_edit"
|
bl_context = "mball_edit"
|
||||||
__label__ = "Meta Tools"
|
bl_label = "Meta Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -306,8 +306,8 @@ class VIEW3D_PT_tools_mballedit(View3DPanel):
|
|||||||
# ********** default tools for editmode_lattice ****************
|
# ********** default tools for editmode_lattice ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_latticeedit(View3DPanel):
|
class VIEW3D_PT_tools_latticeedit(View3DPanel):
|
||||||
__context__ = "lattice_edit"
|
bl_context = "lattice_edit"
|
||||||
__label__ = "Lattice Tools"
|
bl_label = "Lattice Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -333,8 +333,8 @@ class VIEW3D_PT_tools_latticeedit(View3DPanel):
|
|||||||
# ********** default tools for posemode ****************
|
# ********** default tools for posemode ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_posemode(View3DPanel):
|
class VIEW3D_PT_tools_posemode(View3DPanel):
|
||||||
__context__ = "posemode"
|
bl_context = "posemode"
|
||||||
__label__ = "Pose Tools"
|
bl_label = "Pose Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -381,8 +381,8 @@ class VIEW3D_PT_tools_posemode(View3DPanel):
|
|||||||
col.itemO("screen.redo_last", text="Tweak...")
|
col.itemO("screen.redo_last", text="Tweak...")
|
||||||
|
|
||||||
class VIEW3D_PT_tools_posemode_options(View3DPanel):
|
class VIEW3D_PT_tools_posemode_options(View3DPanel):
|
||||||
__context__ = "posemode"
|
bl_context = "posemode"
|
||||||
__label__ = "Pose Options"
|
bl_label = "Pose Options"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -396,8 +396,8 @@ class VIEW3D_PT_tools_posemode_options(View3DPanel):
|
|||||||
# ********** default tools for paint modes ****************
|
# ********** default tools for paint modes ****************
|
||||||
|
|
||||||
class PaintPanel(bpy.types.Panel):
|
class PaintPanel(bpy.types.Panel):
|
||||||
__space_type__ = 'VIEW_3D'
|
bl_space_type = 'VIEW_3D'
|
||||||
__region_type__ = 'TOOLS'
|
bl_region_type = 'TOOLS'
|
||||||
|
|
||||||
def paint_settings(self, context):
|
def paint_settings(self, context):
|
||||||
ts = context.tool_settings
|
ts = context.tool_settings
|
||||||
@ -416,7 +416,7 @@ class PaintPanel(bpy.types.Panel):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
class VIEW3D_PT_tools_brush(PaintPanel):
|
class VIEW3D_PT_tools_brush(PaintPanel):
|
||||||
__label__ = "Brush"
|
bl_label = "Brush"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return self.paint_settings(context)
|
return self.paint_settings(context)
|
||||||
@ -555,8 +555,8 @@ class VIEW3D_PT_tools_brush(PaintPanel):
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
class VIEW3D_PT_tools_brush_stroke(PaintPanel):
|
class VIEW3D_PT_tools_brush_stroke(PaintPanel):
|
||||||
__label__ = "Stroke"
|
bl_label = "Stroke"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
settings = self.paint_settings(context)
|
settings = self.paint_settings(context)
|
||||||
@ -597,8 +597,8 @@ class VIEW3D_PT_tools_brush_stroke(PaintPanel):
|
|||||||
row.itemR(brush, "use_spacing_pressure", toggle=True, text="")
|
row.itemR(brush, "use_spacing_pressure", toggle=True, text="")
|
||||||
|
|
||||||
class VIEW3D_PT_tools_brush_curve(PaintPanel):
|
class VIEW3D_PT_tools_brush_curve(PaintPanel):
|
||||||
__label__ = "Curve"
|
bl_label = "Curve"
|
||||||
__default_closed__ = True
|
bl_default_closed = True
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
settings = self.paint_settings(context)
|
settings = self.paint_settings(context)
|
||||||
@ -614,7 +614,7 @@ class VIEW3D_PT_tools_brush_curve(PaintPanel):
|
|||||||
layout.item_menu_enumO("brush.curve_preset", property="shape")
|
layout.item_menu_enumO("brush.curve_preset", property="shape")
|
||||||
|
|
||||||
class VIEW3D_PT_sculpt_options(PaintPanel):
|
class VIEW3D_PT_sculpt_options(PaintPanel):
|
||||||
__label__ = "Options"
|
bl_label = "Options"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.sculpt_object
|
return context.sculpt_object
|
||||||
@ -645,8 +645,8 @@ class VIEW3D_PT_sculpt_options(PaintPanel):
|
|||||||
# ********** default tools for weightpaint ****************
|
# ********** default tools for weightpaint ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_weightpaint(View3DPanel):
|
class VIEW3D_PT_tools_weightpaint(View3DPanel):
|
||||||
__context__ = "weightpaint"
|
bl_context = "weightpaint"
|
||||||
__label__ = "Weight Tools"
|
bl_label = "Weight Tools"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -661,8 +661,8 @@ class VIEW3D_PT_tools_weightpaint(View3DPanel):
|
|||||||
col.itemO("object.vertex_group_clean", text="Clean")
|
col.itemO("object.vertex_group_clean", text="Clean")
|
||||||
|
|
||||||
class VIEW3D_PT_tools_weightpaint_options(View3DPanel):
|
class VIEW3D_PT_tools_weightpaint_options(View3DPanel):
|
||||||
__context__ = "weightpaint"
|
bl_context = "weightpaint"
|
||||||
__label__ = "Options"
|
bl_label = "Options"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -694,8 +694,8 @@ class VIEW3D_PT_tools_weightpaint_options(View3DPanel):
|
|||||||
# ********** default tools for vertexpaint ****************
|
# ********** default tools for vertexpaint ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_vertexpaint(View3DPanel):
|
class VIEW3D_PT_tools_vertexpaint(View3DPanel):
|
||||||
__context__ = "vertexpaint"
|
bl_context = "vertexpaint"
|
||||||
__label__ = "Options"
|
bl_label = "Options"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@ -719,8 +719,8 @@ class VIEW3D_PT_tools_vertexpaint(View3DPanel):
|
|||||||
# ********** default tools for texturepaint ****************
|
# ********** default tools for texturepaint ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_projectpaint(View3DPanel):
|
class VIEW3D_PT_tools_projectpaint(View3DPanel):
|
||||||
__context__ = "texturepaint"
|
bl_context = "texturepaint"
|
||||||
__label__ = "Project Paint"
|
bl_label = "Project Paint"
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
return context.tool_settings.image_paint.tool != 'SMEAR'
|
return context.tool_settings.image_paint.tool != 'SMEAR'
|
||||||
@ -774,8 +774,8 @@ class VIEW3D_PT_tools_projectpaint(View3DPanel):
|
|||||||
# ********** default tools for particle mode ****************
|
# ********** default tools for particle mode ****************
|
||||||
|
|
||||||
class VIEW3D_PT_tools_particlemode(View3DPanel):
|
class VIEW3D_PT_tools_particlemode(View3DPanel):
|
||||||
__context__ = "particlemode"
|
bl_context = "particlemode"
|
||||||
__label__ = "Options"
|
bl_label = "Options"
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
@ -591,33 +591,34 @@ static void rna_def_panel(BlenderRNA *brna)
|
|||||||
RNA_def_property_string_sdna(prop, NULL, "drawname");
|
RNA_def_property_string_sdna(prop, NULL, "drawname");
|
||||||
|
|
||||||
/* registration */
|
/* registration */
|
||||||
prop= RNA_def_property(srna, "idname", PROP_STRING, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||||
|
RNA_def_property_clear_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "label", PROP_STRING, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
|
||||||
RNA_def_property_string_sdna(prop, NULL, "type->label");
|
RNA_def_property_string_sdna(prop, NULL, "type->label");
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "space_type", PROP_ENUM, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_space_type", PROP_ENUM, PROP_NONE);
|
||||||
RNA_def_property_enum_sdna(prop, NULL, "type->space_type");
|
RNA_def_property_enum_sdna(prop, NULL, "type->space_type");
|
||||||
RNA_def_property_enum_items(prop, space_type_items);
|
RNA_def_property_enum_items(prop, space_type_items);
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "region_type", PROP_ENUM, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_region_type", PROP_ENUM, PROP_NONE);
|
||||||
RNA_def_property_enum_sdna(prop, NULL, "type->region_type");
|
RNA_def_property_enum_sdna(prop, NULL, "type->region_type");
|
||||||
RNA_def_property_enum_items(prop, region_type_items);
|
RNA_def_property_enum_items(prop, region_type_items);
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "context", PROP_STRING, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_context", PROP_STRING, PROP_NONE);
|
||||||
RNA_def_property_string_sdna(prop, NULL, "type->context");
|
RNA_def_property_string_sdna(prop, NULL, "type->context");
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "default_closed", PROP_BOOLEAN, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_default_closed", PROP_BOOLEAN, PROP_NONE);
|
||||||
RNA_def_property_boolean_sdna(prop, NULL, "type->flag", PNL_DEFAULT_CLOSED);
|
RNA_def_property_boolean_sdna(prop, NULL, "type->flag", PNL_DEFAULT_CLOSED);
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "show_header", PROP_BOOLEAN, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_show_header", PROP_BOOLEAN, PROP_NONE);
|
||||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "type->flag", PNL_NO_HEADER);
|
RNA_def_property_boolean_negative_sdna(prop, NULL, "type->flag", PNL_NO_HEADER);
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
}
|
}
|
||||||
@ -647,11 +648,11 @@ static void rna_def_header(BlenderRNA *brna)
|
|||||||
RNA_def_property_struct_type(prop, "UILayout");
|
RNA_def_property_struct_type(prop, "UILayout");
|
||||||
|
|
||||||
/* registration */
|
/* registration */
|
||||||
prop= RNA_def_property(srna, "idname", PROP_STRING, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "space_type", PROP_ENUM, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_space_type", PROP_ENUM, PROP_NONE);
|
||||||
RNA_def_property_enum_sdna(prop, NULL, "type->space_type");
|
RNA_def_property_enum_sdna(prop, NULL, "type->space_type");
|
||||||
RNA_def_property_enum_items(prop, space_type_items);
|
RNA_def_property_enum_items(prop, space_type_items);
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
@ -691,11 +692,12 @@ static void rna_def_menu(BlenderRNA *brna)
|
|||||||
RNA_def_property_struct_type(prop, "UILayout");
|
RNA_def_property_struct_type(prop, "UILayout");
|
||||||
|
|
||||||
/* registration */
|
/* registration */
|
||||||
prop= RNA_def_property(srna, "idname", PROP_STRING, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||||
|
RNA_def_property_clear_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
prop= RNA_def_property(srna, "label", PROP_STRING, PROP_NONE);
|
prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE);
|
||||||
RNA_def_property_string_sdna(prop, NULL, "type->label");
|
RNA_def_property_string_sdna(prop, NULL, "type->label");
|
||||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ def rna2epy(BASEPATH):
|
|||||||
for rna_type_name in dir(bpy.types):
|
for rna_type_name in dir(bpy.types):
|
||||||
rna_type = getattr(bpy.types, rna_type_name)
|
rna_type = getattr(bpy.types, rna_type_name)
|
||||||
|
|
||||||
try: rna_struct = rna_type.__rna__
|
try: rna_struct = rna_type.bl_rna
|
||||||
except: rna_struct = None
|
except: rna_struct = None
|
||||||
|
|
||||||
if rna_struct:
|
if rna_struct:
|
||||||
@ -672,7 +672,7 @@ def op2epy(BASEPATH):
|
|||||||
op_mod = getattr(bpy.ops, op_mod_name)
|
op_mod = getattr(bpy.ops, op_mod_name)
|
||||||
operators = dir(op_mod)
|
operators = dir(op_mod)
|
||||||
for op in sorted(operators):
|
for op in sorted(operators):
|
||||||
# rna = getattr(bpy.types, op).__rna__
|
# rna = getattr(bpy.types, op).bl_rna
|
||||||
rna = getattr(op_mod, op).get_rna()
|
rna = getattr(op_mod, op).get_rna()
|
||||||
write_func(rna, '', out, 'OPERATOR')
|
write_func(rna, '', out, 'OPERATOR')
|
||||||
|
|
||||||
|
@ -41,13 +41,13 @@
|
|||||||
|
|
||||||
#include "../generic/bpy_internal_import.h" // our own imports
|
#include "../generic/bpy_internal_import.h" // our own imports
|
||||||
|
|
||||||
#define PYOP_ATTR_PROP "__props__"
|
#define PYOP_ATTR_PROP "bl_props"
|
||||||
#define PYOP_ATTR_UINAME "__label__"
|
#define PYOP_ATTR_UINAME "bl_label"
|
||||||
#define PYOP_ATTR_IDNAME "__idname__" /* the name given by python */
|
#define PYOP_ATTR_IDNAME "bl_idname" /* the name given by python */
|
||||||
#define PYOP_ATTR_IDNAME_BL "__idname_bl__" /* our own name converted into blender syntax, users wont see this */
|
#define PYOP_ATTR_IDNAME_BL "_bl_idname" /* our own name converted into blender syntax, users wont see this */
|
||||||
#define PYOP_ATTR_DESCRIPTION "__doc__" /* use pythons docstring */
|
#define PYOP_ATTR_DESCRIPTION "__doc__" /* use pythons docstring */
|
||||||
#define PYOP_ATTR_REGISTER "__register__" /* True/False. if this python operator should be registered */
|
#define PYOP_ATTR_REGISTER "bl_register" /* True/False. if this python operator should be registered */
|
||||||
#define PYOP_ATTR_UNDO "__undo__" /* True/False. if this python operator should be undone */
|
#define PYOP_ATTR_UNDO "bl_undo" /* True/False. if this python operator should be undone */
|
||||||
|
|
||||||
static struct BPY_flag_def pyop_ret_flags[] = {
|
static struct BPY_flag_def pyop_ret_flags[] = {
|
||||||
{"RUNNING_MODAL", OPERATOR_RUNNING_MODAL},
|
{"RUNNING_MODAL", OPERATOR_RUNNING_MODAL},
|
||||||
@ -98,7 +98,7 @@ static int PYTHON_OT_generic(int mode, bContext *C, wmOperatorType *ot, wmOperat
|
|||||||
bpy_context_set(C, &gilstate);
|
bpy_context_set(C, &gilstate);
|
||||||
|
|
||||||
args = PyTuple_New(1);
|
args = PyTuple_New(1);
|
||||||
PyTuple_SET_ITEM(args, 0, PyObject_GetAttrString(py_class, "__rna__")); // need to use an rna instance as the first arg
|
PyTuple_SET_ITEM(args, 0, PyObject_GetAttrString(py_class, "bl_rna")); // need to use an rna instance as the first arg
|
||||||
py_class_instance = PyObject_Call(py_class, args, NULL);
|
py_class_instance = PyObject_Call(py_class, args, NULL);
|
||||||
Py_DECREF(args);
|
Py_DECREF(args);
|
||||||
|
|
||||||
|
@ -2407,7 +2407,7 @@ static void pyrna_subtype_set_rna(PyObject *newclass, StructRNA *srna)
|
|||||||
item = pyrna_struct_CreatePyObject(&ptr);
|
item = pyrna_struct_CreatePyObject(&ptr);
|
||||||
|
|
||||||
//item = PyCObject_FromVoidPtr(srna, NULL);
|
//item = PyCObject_FromVoidPtr(srna, NULL);
|
||||||
PyDict_SetItemString(((PyTypeObject *)newclass)->tp_dict, "__rna__", item);
|
PyDict_SetItemString(((PyTypeObject *)newclass)->tp_dict, "bl_rna", item);
|
||||||
Py_DECREF(item);
|
Py_DECREF(item);
|
||||||
/* done with rna instance */
|
/* done with rna instance */
|
||||||
|
|
||||||
@ -2740,26 +2740,26 @@ static StructRNA *pyrna_struct_as_srna(PyObject *self)
|
|||||||
|
|
||||||
/* ack, PyObject_GetAttrString wont look up this types tp_dict first :/ */
|
/* ack, PyObject_GetAttrString wont look up this types tp_dict first :/ */
|
||||||
if(PyType_Check(self)) {
|
if(PyType_Check(self)) {
|
||||||
py_srna = (BPy_StructRNA *)PyDict_GetItemString(((PyTypeObject *)self)->tp_dict, "__rna__");
|
py_srna = (BPy_StructRNA *)PyDict_GetItemString(((PyTypeObject *)self)->tp_dict, "bl_rna");
|
||||||
Py_XINCREF(py_srna);
|
Py_XINCREF(py_srna);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(py_srna==NULL)
|
if(py_srna==NULL)
|
||||||
py_srna = (BPy_StructRNA*)PyObject_GetAttrString(self, "__rna__");
|
py_srna = (BPy_StructRNA*)PyObject_GetAttrString(self, "bl_rna");
|
||||||
|
|
||||||
if(py_srna==NULL) {
|
if(py_srna==NULL) {
|
||||||
PyErr_SetString(PyExc_SystemError, "internal error, self had no __rna__ attribute, should never happen.");
|
PyErr_SetString(PyExc_SystemError, "internal error, self had no bl_rna attribute, should never happen.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!BPy_StructRNA_Check(py_srna)) {
|
if(!BPy_StructRNA_Check(py_srna)) {
|
||||||
PyErr_Format(PyExc_SystemError, "internal error, __rna__ was of type %.200s, instead of %.200s instance.", Py_TYPE(py_srna)->tp_name, pyrna_struct_Type.tp_name);
|
PyErr_Format(PyExc_SystemError, "internal error, bl_rna was of type %.200s, instead of %.200s instance.", Py_TYPE(py_srna)->tp_name, pyrna_struct_Type.tp_name);
|
||||||
Py_DECREF(py_srna);
|
Py_DECREF(py_srna);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(py_srna->ptr.type != &RNA_Struct) {
|
if(py_srna->ptr.type != &RNA_Struct) {
|
||||||
PyErr_SetString(PyExc_SystemError, "internal error, __rna__ was not a RNA_Struct type of rna struct.");
|
PyErr_SetString(PyExc_SystemError, "internal error, bl_rna was not a RNA_Struct type of rna struct.");
|
||||||
Py_DECREF(py_srna);
|
Py_DECREF(py_srna);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -3107,7 +3107,7 @@ static int deferred_register_props(PyObject *py_class, StructRNA *srna)
|
|||||||
PyObject *props, *dummy_args, *item;
|
PyObject *props, *dummy_args, *item;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
props= PyObject_GetAttrString(py_class, "__props__");
|
props= PyObject_GetAttrString(py_class, "bl_props");
|
||||||
|
|
||||||
if(!props) {
|
if(!props) {
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
@ -3138,7 +3138,7 @@ static int deferred_register_props(PyObject *py_class, StructRNA *srna)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
PyErr_SetString(PyExc_AttributeError, "expected list of dicts for __props__.");
|
PyErr_SetString(PyExc_AttributeError, "expected list of dicts for bl_props.");
|
||||||
Py_DECREF(dummy_args);
|
Py_DECREF(dummy_args);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -3179,7 +3179,7 @@ static int bpy_class_validate(PointerRNA *dummyptr, void *py_data, int *have_fun
|
|||||||
PyObject *item, *fitem;
|
PyObject *item, *fitem;
|
||||||
PyObject *py_arg_count;
|
PyObject *py_arg_count;
|
||||||
int i, flag, arg_count, func_arg_count;
|
int i, flag, arg_count, func_arg_count;
|
||||||
char identifier[128];
|
char *identifier;
|
||||||
|
|
||||||
if (base_class) {
|
if (base_class) {
|
||||||
if (!PyObject_IsSubclass(py_class, base_class)) {
|
if (!PyObject_IsSubclass(py_class, base_class)) {
|
||||||
@ -3250,11 +3250,11 @@ static int bpy_class_validate(PointerRNA *dummyptr, void *py_data, int *have_fun
|
|||||||
if(!(flag & PROP_REGISTER))
|
if(!(flag & PROP_REGISTER))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
BLI_snprintf(identifier, sizeof(identifier), "__%s__", RNA_property_identifier(prop));
|
identifier= RNA_property_identifier(prop);
|
||||||
item = PyObject_GetAttrString(py_class, identifier);
|
item = PyObject_GetAttrString(py_class, identifier);
|
||||||
|
|
||||||
if (item==NULL) {
|
if (item==NULL) {
|
||||||
if(strcmp(identifier, "__idname__") == 0) {
|
if(strcmp(identifier, "bl_idname") == 0) {
|
||||||
item= PyObject_GetAttrString(py_class, "__name__");
|
item= PyObject_GetAttrString(py_class, "__name__");
|
||||||
|
|
||||||
if(item) {
|
if(item) {
|
||||||
|
@ -123,10 +123,10 @@ seek(bpy.data, 'bpy.data', 0)
|
|||||||
'''
|
'''
|
||||||
for d in dir(bpy.types):
|
for d in dir(bpy.types):
|
||||||
t = getattr(bpy.types, d)
|
t = getattr(bpy.types, d)
|
||||||
try: r = t.__rna__
|
try: r = t.bl_rna
|
||||||
except: r = None
|
except: r = None
|
||||||
if r:
|
if r:
|
||||||
seek(r, 'bpy.types.' + d + '.__rna__', 0)
|
seek(r, 'bpy.types.' + d + '.bl_rna', 0)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
#print dir(bpy)
|
#print dir(bpy)
|
||||||
|
Loading…
Reference in New Issue
Block a user