diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py index a657264a54b3c33267526da7791f55a9c90d254f..3b9bdd096aeb75ccab110446949f34a73c560432 100644 --- a/add_curve_sapling/__init__.py +++ b/add_curve_sapling/__init__.py @@ -868,7 +868,7 @@ class AddTree(Operator): layout = self.layout # Branch specs - # layout.label('Tree Definition') + # layout.label(text='Tree Definition') layout.prop(self, 'chooseSet') diff --git a/blenderkit/__init__.py b/blenderkit/__init__.py index 9850d5d885ccdc5dc999a73eb48426d3744d7d54..0bafa699de4140522de48ea85c7782a1ce387648 100644 --- a/blenderkit/__init__.py +++ b/blenderkit/__init__.py @@ -1303,7 +1303,7 @@ class BlenderKitAddonPreferences(AddonPreferences): icon='QUESTION') op.url = paths.BLENDERKIT_SIGNUP_URL layout.prop(self, "api_key", text='Your API Key') - # layout.label('After you paste API Key, categories are downloaded, so blender will freeze for a few seconds.') + # layout.label(text='After you paste API Key, categories are downloaded, so blender will freeze for a few seconds.') layout.prop(self, "global_dir") layout.prop(self, "project_subdir") # layout.prop(self, "temp_dir") diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py index 9828174723c78cf17fdd0adf56d9233751f67e89..2f94ba13246c713f92cac69951799f949d43c009 100644 --- a/blenderkit/ui_panels.py +++ b/blenderkit/ui_panels.py @@ -518,7 +518,7 @@ class VIEW3D_PT_blenderkit_unified(Panel): # row.prop(ui_props, 'down_up', expand=True, icon_only=True) - # row.label('') + # row.label(text='') row = row.split().row() row.prop(ui_props, 'asset_type', expand=True, icon_only=True) diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 02481f83c6f581421d522af9753eb0734405e02f..ef2da4e0279e028bdd048f8e2fbc3869823d08ad 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -1194,7 +1194,7 @@ class SCENE_PT_Main(bpy.types.Panel): row = layout.row() row.label(text="Applink didn't find your 3d-Coat/Exchange folder.") row = layout.row() - row.label("Please select it before using Applink.") + row.label(text="Please select it before using Applink.") row = layout.row() row.prop(coat3D,"exchangedir",text="") row = layout.row() diff --git a/io_convert_image_to_mesh_img/ui/terrainpanel.py b/io_convert_image_to_mesh_img/ui/terrainpanel.py index 8a2bece3bbc47263b1f41a99375e5c92446a8b45..284b86005ef49e0eeeebc63752680b1d388f5737 100644 --- a/io_convert_image_to_mesh_img/ui/terrainpanel.py +++ b/io_convert_image_to_mesh_img/ui/terrainpanel.py @@ -101,19 +101,19 @@ class TerrainPanel(Panel): dtm_resolution = metadata_panel.row() dtm_resolution.label(text='Current Resolution: ') - dtm_resolution.label('{:9,.2%}'.format( + dtm_resolution.label(text='{:9,.2%}'.format( obj['DTM_RESOLUTION'] )) mesh_scale = metadata_panel.row() mesh_scale.label(text='Current Scale: ') - mesh_scale.label('{:9,.2f} m/post'.format( + mesh_scale.label(text='{:9,.2f} m/post'.format( obj['MESH_SCALE'] )) dtm_scale = metadata_panel.row() dtm_scale.label(text='Original Scale: ') - dtm_scale.label('{:9,.2f} m/post'.format( + dtm_scale.label(text='{:9,.2f} m/post'.format( obj['MAP_SCALE'] )) diff --git a/io_export_after_effects.py b/io_export_after_effects.py index 65c60f5cce163949fbe4998b2305638de94d9d46..c0afe51f124c9082f6bf200645a40df11d81bcef 100644 --- a/io_export_after_effects.py +++ b/io_export_after_effects.py @@ -738,7 +738,7 @@ class ExportJsx(bpy.types.Operator, ExportHelper): layout = self.layout box = layout.box() - box.label('Size fo AE Comp (pixels per 1 BU)') + box.label(text='Size fo AE Comp (pixels per 1 BU)') box.prop(self, 'ae_size') box.label(text='Animation:') box.prop(self, 'include_animation') diff --git a/io_sequencer_edl/__init__.py b/io_sequencer_edl/__init__.py index 5afc1a8dc0a5d8a7df7c0d73fc43cc3a5f3130e8..8d1d871cf30ccab85b500056bdc7d09fb454653b 100644 --- a/io_sequencer_edl/__init__.py +++ b/io_sequencer_edl/__init__.py @@ -300,7 +300,7 @@ class SEQUENCER_PT_import_edl(bpy.types.Panel): col.prop(reel, "frame_offset") if reel is None: - box.label("Empty (No EDL Data)") + box.label(text="Empty (No EDL Data)") box.operator(FindReelsEDL.bl_idname, icon='EXTERNAL_DATA') diff --git a/materials_library_vx/__init__.py b/materials_library_vx/__init__.py index 17e3934e64860bd63820b0c01803984f6568c36d..0e9cf5e70e058919334d9d548ba8422e1ac5c88e 100644 --- a/materials_library_vx/__init__.py +++ b/materials_library_vx/__init__.py @@ -930,8 +930,8 @@ class MATLIB_OT_operator(Operator): layout = self.layout #cmd = LIBRARY_ADD if self.cmd == "LIBRARY_ADD": - #layout.label("Select a blend file as library or") - #layout.label("Type a name to create a new library.") + #layout.label(text="Select a blend file as library or") + #layout.label(text="Type a name to create a new library.") layout.prop(self, "category", text="Library") elif self.cmd == "FILTER_ADD": layout.prop(self, "category") @@ -1191,15 +1191,15 @@ class MATLIB_PT_vxPanel(Panel): # if (matlib.current_library): # row.label(matlib.current_library.name) # else: -# row.label("Library not found!.") +# row.label(text="Library not found!.") """ classes = [ matlibMaterials, matlibProperties, EmptyGroup, -MATLIB_PT_vxPanel, -MATLIB_OT_operator, -MATLIB_MT_LibsMenu, +MATLIB_PT_vxPanel, +MATLIB_OT_operator, +MATLIB_MT_LibsMenu, MATLIB_MT_CatsMenu ] #print(bpy.context.scene) diff --git a/mesh_extra_tools/__init__.py b/mesh_extra_tools/__init__.py index c1b9d3889fc6dbd44fc3d2a0ead273cd0f398e99..307db313b22472b9b74b1c7c3a1af4d6ae182130 100644 --- a/mesh_extra_tools/__init__.py +++ b/mesh_extra_tools/__init__.py @@ -818,15 +818,15 @@ class mesh_extra_tools_pref(AddonPreferences): if self.show_info: box.label(text="Collection of various extra Mesh Edit Functions", icon="LAYER_ACTIVE") - box.label("The majority of the tools can be found in" + box.label(text="The majority of the tools can be found in" "Mesh Edit Mode Toolshelf or W key Specials Menu", icon="LAYER_USED") - box.label("The Pen tool is a separate Panel in the Toolshelf", + box.label(text="The Pen tool is a separate Panel in the Toolshelf", icon="LAYER_USED") - box.label("The Face Extrude tool is only available in Object Mode " + box.label(text="The Face Extrude tool is only available in Object Mode " "as a separate panel in the Toolshelf", icon="LAYER_USED") - box.label("Face Info / Select is a separate Panel located in Properties > Data Editor", + box.label(text="Face Info / Select is a separate Panel located in Properties > Data Editor", icon="LAYER_USED") box.prop(self, "show_shortcuts", icon="KEYINGSET") @@ -834,21 +834,21 @@ class mesh_extra_tools_pref(AddonPreferences): col = box.column() col.label(text="Double Right Click in Edit mode in the 3D Viewport", icon="LAYER_ACTIVE") - col.label("Used for quick access to the Vertex, Edge and Face context menus", + col.label(text="Used for quick access to the Vertex, Edge and Face context menus", icon="LAYER_USED") col.separator() col.label(text="W-key in Edit Mode in the 3D Viewport", icon="LAYER_ACTIVE") - col.label("Tools are grouped into menus prepended to the Specials Menu", + col.label(text="Tools are grouped into menus prepended to the Specials Menu", icon="LAYER_USED") col.separator() col.label(text="Ctrl+D in Edit Mode in the 3D Viewport", icon="LAYER_ACTIVE") - col.label("Used by the Pen Tool to start drawing. When activated:", + col.label(text="Used by the Pen Tool to start drawing. When activated:", icon="LAYER_USED") - col.label("Shift + Mouse Move is used to draw along the X axis", + col.label(text="Shift + Mouse Move is used to draw along the X axis", icon="LAYER_USED") - col.label("Alt + Mouse Move is used to draw along the Y axis", + col.label(text="Alt + Mouse Move is used to draw along the Y axis", icon="LAYER_USED") col.separator() col.label(text="Note: when using Fast Loop operator, press Esc twice to finish", diff --git a/mocap/__init__.py b/mocap/__init__.py index cc2a9a2c48175a81808bd78ef125bf0edb7aff6e..f040e0b19e1052a56f52328e391c764bfafc6204 100644 --- a/mocap/__init__.py +++ b/mocap/__init__.py @@ -295,7 +295,7 @@ class MocapPanel(bpy.types.Panel): enduser_obj = bpy.context.active_object performer_obj = [obj for obj in bpy.context.selected_objects if obj != enduser_obj] if enduser_obj is None or len(performer_obj) != 1: - layout.label("Select performer rig and target rig (as active)") + layout.label(text="Select performer rig and target rig (as active)") else: layout.operator("mocap.guessmapping", text="Guess Hierarchy Mapping") labelRow = layout.row(align=True) diff --git a/node_wrangler.py b/node_wrangler.py index 8c3f71f2b5fedfb983173d42821373996439a1cc..7cb71f380f5dd05d72f6f9ccaddb385e0ca11580 100644 --- a/node_wrangler.py +++ b/node_wrangler.py @@ -4035,7 +4035,7 @@ class NWVertColMenu(bpy.types.Menu): for vcol in vcols: l.operator(NWAddAttrNode.bl_idname, text=vcol).attr_name = vcol else: - l.label("No Vertex Color layers on objects with this material") + l.label(text="No Vertex Color layers on objects with this material") class NWSwitchNodeTypeMenu(Menu, NWBase): diff --git a/oscurart_tools/object/selection.py b/oscurart_tools/object/selection.py index 39f6b603ef3c8d9d166befcad2ad69dfbdc9ce38..44eb2a03296ab6578fc7a7c8b9f6e2c0f1c7af93 100644 --- a/oscurart_tools/object/selection.py +++ b/oscurart_tools/object/selection.py @@ -59,7 +59,5 @@ class OSSELECTION_HT_OscSelection(bpy.types.Header): """ layout = self.layout row = layout.row() - row.label("Sels: "+str(len(bpy.selection_osc))) + row.label(text="Sels: "+str(len(bpy.selection_osc))) """ - - diff --git a/render_auto_tile_size.py b/render_auto_tile_size.py index f6feb0cf8c56f38cea7f21722bcccdfb459b20d7..f61839d75de72fd24e7be491436cc97fb2035460 100644 --- a/render_auto_tile_size.py +++ b/render_auto_tile_size.py @@ -424,7 +424,7 @@ def ui_layout(engine, layout, context): if settings.use_advanced_ui: row = sub.row(align=True) - row.label("Target tile size:") + row.label(text="Target tile size:") row.separator() row.prop(settings, "target_type", expand=True) @@ -432,7 +432,7 @@ def ui_layout(engine, layout, context): row.prop(settings, get_tilesize_prop(engine, device, userpref), expand=True) sub.prop(settings, "use_optimal", text="Calculate Optimal Size") - sub.label("Number of tiles: %s x %s (Total: %s)" % + sub.label(text="Number of tiles: %s x %s (Total: %s)" % (settings.num_tiles[0], settings.num_tiles[1], settings.num_tiles[0] * settings.num_tiles[1]) ) diff --git a/render_povray/nodes.py b/render_povray/nodes.py index a32675655817121f48e193e9e736346349b4c3cb..afacfc8211a9a7c67f12bc68ff319e5ab41914e0 100644 --- a/render_povray/nodes.py +++ b/render_povray/nodes.py @@ -364,7 +364,7 @@ class PovrayMultiplyNode(Node, ObjectNodeTree): def draw_buttons(self, context, layout): column=layout.column() - column.label("Amount") + column.label(text="Amount") row=column.row(align=True) row.prop(self,"amount_x") row.prop(self,"amount_y") @@ -373,7 +373,7 @@ class PovrayMultiplyNode(Node, ObjectNodeTree): def draw_buttons_ext(self, context, layout): column=layout.column() - column.label("Amount") + column.label(text="Amount") row=column.row(align=True) row.prop(self,"amount_x") row.prop(self,"amount_y") @@ -773,7 +773,7 @@ class ShaderPatternNode(Node, ObjectNodeTree): if self.pattern=='crackle': layout.prop(self, "crackle_metric") layout.prop(self, "crackle_solid") - layout.label("Form:") + layout.label(text="Form:") layout.prop(self, "crackle_form_x") layout.prop(self, "crackle_form_y") layout.prop(self, "crackle_form_z") @@ -890,7 +890,7 @@ class ShaderNormalMapNode(Node, ObjectNodeTree): if self.inputs[0].default_value =='brick': layout.prop(self, "brick_mortar") - layout.label("Brick size:") + layout.label(text="Brick size:") layout.prop(self, "brick_size_x") layout.prop(self, "brick_size_y") layout.prop(self, "brick_size_z") @@ -899,7 +899,7 @@ class ShaderNormalMapNode(Node, ObjectNodeTree): if self.inputs[0].default_value =='brick': layout.prop(self, "brick_mortar") - layout.label("Brick size:") + layout.label(text="Brick size:") layout.prop(self, "brick_size_x") layout.prop(self, "brick_size_y") layout.prop(self, "brick_size_z") @@ -984,17 +984,17 @@ class PovraySlopeNode(Node, TextureNodeTree): layout.operator("pov.nodeinputadd") row = layout.row() - row.label('Value') - row.label('Height') - row.label('Slope') + row.label(text='Value') + row.label(text='Height') + row.label(text='Slope') def draw_buttons_ext(self, context, layout): layout.operator("pov.nodeinputadd") row = layout.row() - row.label('Value') - row.label('Height') - row.label('Slope') + row.label(text='Value') + row.label(text='Height') + row.label(text='Slope') def draw_label(self): return "Slope Map" @@ -1359,4 +1359,4 @@ def unregister(): from bpy.utils import unregister_class for cls in classes: - unregister_class(cls) \ No newline at end of file + unregister_class(cls) diff --git a/render_povray/ui.py b/render_povray/ui.py index f033da53bfdf87d2a0025314d0ce0570a4574c7c..c67606fc4c23b33c595618a937dd25de69c64b4b 100644 --- a/render_povray/ui.py +++ b/render_povray/ui.py @@ -253,7 +253,7 @@ del properties_particle def check_material(mat): if mat is not None: if mat.use_nodes: - if not mat.node_tree: #FORMERLY : #mat.active_node_material is not None: + if not mat.node_tree: #FORMERLY : #mat.active_node_material is not None: return True return False return True @@ -573,7 +573,7 @@ class LIGHT_PT_POV_sunsky(PovLampButtonsPanel, bpy.types.Panel): draw = properties_data_light.DATA_PT_sunsky.draw - + class LIGHT_PT_POV_shadow(PovLampButtonsPanel, bpy.types.Panel): bl_label = properties_data_light.DATA_PT_shadow.bl_label @@ -669,8 +669,8 @@ class WORLD_PT_POV_world(WorldButtonsPanel, bpy.types.Panel): row.menu(POV_WORLD_MT_presets.__name__, text=POV_WORLD_MT_presets.bl_label) row.operator(AddPresetWorld.bl_idname, text="", icon='ADD') row.operator(AddPresetWorld.bl_idname, text="", icon='REMOVE').remove_active = True - - row = layout.row() + + row = layout.row() row.prop(world, "use_sky_paper") row.prop(world, "use_sky_blend") row.prop(world, "use_sky_real") @@ -1093,7 +1093,7 @@ class AddPresetSSS(AddPresetBase, bpy.types.Operator): # where to store the preset preset_subdir = "pov/material/sss" - + class MATERIAL_PT_POV_sss(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Subsurface Scattering" bl_options = {'DEFAULT_CLOSED'} @@ -1144,7 +1144,7 @@ class MATERIAL_PT_POV_sss(MaterialButtonsPanel, bpy.types.Panel): sub.prop(sss, "back") col.separator() col.prop(sss, "error_threshold", text="Error") - + class MATERIAL_PT_povray_activate_node(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Activate Node Settings" bl_context = "material" @@ -1216,7 +1216,7 @@ class MATERIAL_PT_povray_active_node(MaterialButtonsPanel, bpy.types.Panel): socket.draw(context, row, node, socket.name) else: layout.label(text="No active nodes!") - + class MATERIAL_PT_POV_mirror(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Mirror" bl_options = {'DEFAULT_CLOSED'} @@ -2300,7 +2300,7 @@ class TEXT_PT_povray_custom_code(TextButtonsPanel, bpy.types.Panel): if text: box = layout.box() - box.label('Source to render:', icon='RENDER_STILL') + box.label(text='Source to render:', icon='RENDER_STILL') row = box.row() row.prop(text.pov, "custom_code",expand = True) if text.pov.custom_code in {'3dview'}: @@ -2417,7 +2417,7 @@ def register(): for cls in classes: register_class(cls) - + bpy.types.VIEW3D_MT_add.prepend(menu_func_add) bpy.types.TOPBAR_MT_file_import.append(menu_func_import) bpy.types.TEXT_MT_templates.append(menu_func_templates) @@ -2441,7 +2441,6 @@ def unregister(): bpy.types.TEXT_MT_templates.remove(menu_func_templates) bpy.types.TOPBAR_MT_file_import.remove(menu_func_import) bpy.types.VIEW3D_MT_add.remove(menu_func_add) - + for cls in reversed(classes): unregister_class(cls) - \ No newline at end of file