Style edit (mostly), use """ for docstrings (not ''').
Should also fix the broken py ops tips...
This commit is contained in:
@@ -157,8 +157,8 @@ def find_path_new(id_data, data_path, rna_update_dict, rna_update_from_map):
|
|||||||
|
|
||||||
|
|
||||||
def update_data_paths(rna_update):
|
def update_data_paths(rna_update):
|
||||||
''' rna_update triple [(class_name, from, to), ...]
|
""" rna_update triple [(class_name, from, to), ...]
|
||||||
'''
|
"""
|
||||||
|
|
||||||
# make a faster lookup dict
|
# make a faster lookup dict
|
||||||
rna_update_dict = {}
|
rna_update_dict = {}
|
||||||
|
|||||||
@@ -31,16 +31,16 @@ op_get_instance = ops_module.get_instance
|
|||||||
|
|
||||||
|
|
||||||
class BPyOps(object):
|
class BPyOps(object):
|
||||||
'''
|
"""
|
||||||
Fake module like class.
|
Fake module like class.
|
||||||
|
|
||||||
bpy.ops
|
bpy.ops
|
||||||
'''
|
"""
|
||||||
|
|
||||||
def __getattr__(self, module):
|
def __getattr__(self, module):
|
||||||
'''
|
"""
|
||||||
gets a bpy.ops submodule
|
gets a bpy.ops submodule
|
||||||
'''
|
"""
|
||||||
if module.startswith('__'):
|
if module.startswith('__'):
|
||||||
raise AttributeError(module)
|
raise AttributeError(module)
|
||||||
return BPyOpsSubMod(module)
|
return BPyOpsSubMod(module)
|
||||||
@@ -69,20 +69,20 @@ class BPyOps(object):
|
|||||||
|
|
||||||
|
|
||||||
class BPyOpsSubMod(object):
|
class BPyOpsSubMod(object):
|
||||||
'''
|
"""
|
||||||
Utility class to fake submodules.
|
Utility class to fake submodules.
|
||||||
|
|
||||||
eg. bpy.ops.object
|
eg. bpy.ops.object
|
||||||
'''
|
"""
|
||||||
__keys__ = ("module",)
|
__keys__ = ("module",)
|
||||||
|
|
||||||
def __init__(self, module):
|
def __init__(self, module):
|
||||||
self.module = module
|
self.module = module
|
||||||
|
|
||||||
def __getattr__(self, func):
|
def __getattr__(self, func):
|
||||||
'''
|
"""
|
||||||
gets a bpy.ops.submodule function
|
gets a bpy.ops.submodule function
|
||||||
'''
|
"""
|
||||||
if func.startswith('__'):
|
if func.startswith('__'):
|
||||||
raise AttributeError(func)
|
raise AttributeError(func)
|
||||||
return BPyOpsSubModOp(self.module, func)
|
return BPyOpsSubModOp(self.module, func)
|
||||||
@@ -105,11 +105,11 @@ class BPyOpsSubMod(object):
|
|||||||
|
|
||||||
|
|
||||||
class BPyOpsSubModOp(object):
|
class BPyOpsSubModOp(object):
|
||||||
'''
|
"""
|
||||||
Utility class to fake submodule operators.
|
Utility class to fake submodule operators.
|
||||||
|
|
||||||
eg. bpy.ops.object.somefunc
|
eg. bpy.ops.object.somefunc
|
||||||
'''
|
"""
|
||||||
|
|
||||||
__keys__ = ("module", "func")
|
__keys__ = ("module", "func")
|
||||||
|
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ def edge_loops_from_edges(mesh, edges=None):
|
|||||||
|
|
||||||
|
|
||||||
def ngon_tessellate(from_data, indices, fix_loops=True):
|
def ngon_tessellate(from_data, indices, fix_loops=True):
|
||||||
'''
|
"""
|
||||||
Takes a polyline of indices (fgon) and returns a list of face
|
Takes a polyline of indices (fgon) and returns a list of face
|
||||||
indicie lists. Designed to be used for importers that need indices for an
|
indicie lists. Designed to be used for importers that need indices for an
|
||||||
fgon to create from existing verts.
|
fgon to create from existing verts.
|
||||||
@@ -329,7 +329,7 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
|
|||||||
to fill, and can be a subset of the data given.
|
to fill, and can be a subset of the data given.
|
||||||
fix_loops: If this is enabled polylines that use loops to make multiple
|
fix_loops: If this is enabled polylines that use loops to make multiple
|
||||||
polylines are delt with correctly.
|
polylines are delt with correctly.
|
||||||
'''
|
"""
|
||||||
|
|
||||||
from mathutils.geometry import tessellate_polygon
|
from mathutils.geometry import tessellate_polygon
|
||||||
from mathutils import Vector
|
from mathutils import Vector
|
||||||
@@ -352,9 +352,9 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
|
|||||||
return v1[1], v2[1]
|
return v1[1], v2[1]
|
||||||
|
|
||||||
if not fix_loops:
|
if not fix_loops:
|
||||||
'''
|
"""
|
||||||
Normal single concave loop filling
|
Normal single concave loop filling
|
||||||
'''
|
"""
|
||||||
if type(from_data) in {tuple, list}:
|
if type(from_data) in {tuple, list}:
|
||||||
verts = [Vector(from_data[i]) for ii, i in enumerate(indices)]
|
verts = [Vector(from_data[i]) for ii, i in enumerate(indices)]
|
||||||
else:
|
else:
|
||||||
@@ -368,10 +368,10 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
|
|||||||
fill = tessellate_polygon([verts])
|
fill = tessellate_polygon([verts])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
'''
|
"""
|
||||||
Seperate this loop into multiple loops be finding edges that are
|
Seperate this loop into multiple loops be finding edges that are
|
||||||
used twice. This is used by lightwave LWO files a lot
|
used twice. This is used by lightwave LWO files a lot
|
||||||
'''
|
"""
|
||||||
|
|
||||||
if type(from_data) in {tuple, list}:
|
if type(from_data) in {tuple, list}:
|
||||||
verts = [vert_treplet(Vector(from_data[i]), ii)
|
verts = [vert_treplet(Vector(from_data[i]), ii)
|
||||||
|
|||||||
@@ -85,10 +85,10 @@ def _call_recursive(context, base, py_node):
|
|||||||
|
|
||||||
|
|
||||||
class BPyML_BaseUI():
|
class BPyML_BaseUI():
|
||||||
'''
|
"""
|
||||||
This is a mix-in class that defines a draw function
|
This is a mix-in class that defines a draw function
|
||||||
which checks for draw_data
|
which checks for draw_data
|
||||||
'''
|
"""
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|||||||
@@ -48,14 +48,14 @@ def replace_help(namespace):
|
|||||||
|
|
||||||
|
|
||||||
def get_console(console_id):
|
def get_console(console_id):
|
||||||
'''
|
"""
|
||||||
helper function for console operators
|
helper function for console operators
|
||||||
currently each text data block gets its own
|
currently each text data block gets its own
|
||||||
console - code.InteractiveConsole()
|
console - code.InteractiveConsole()
|
||||||
...which is stored in this function.
|
...which is stored in this function.
|
||||||
|
|
||||||
console_id can be any hashable type
|
console_id can be any hashable type
|
||||||
'''
|
"""
|
||||||
from code import InteractiveConsole
|
from code import InteractiveConsole
|
||||||
|
|
||||||
consoles = getattr(get_console, "consoles", None)
|
consoles = getattr(get_console, "consoles", None)
|
||||||
|
|||||||
@@ -437,9 +437,9 @@ def BuildRNAInfo():
|
|||||||
# rna_functions_dict = {} # store all functions directly in this type (not inherited)
|
# rna_functions_dict = {} # store all functions directly in this type (not inherited)
|
||||||
|
|
||||||
def full_rna_struct_path(rna_struct):
|
def full_rna_struct_path(rna_struct):
|
||||||
'''
|
"""
|
||||||
Needed when referencing one struct from another
|
Needed when referencing one struct from another
|
||||||
'''
|
"""
|
||||||
nested = rna_struct.nested
|
nested = rna_struct.nested
|
||||||
if nested:
|
if nested:
|
||||||
return "%s.%s" % (full_rna_struct_path(nested), rna_struct.identifier)
|
return "%s.%s" % (full_rna_struct_path(nested), rna_struct.identifier)
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ def add_torus(major_rad, minor_rad, major_seg, minor_seg):
|
|||||||
|
|
||||||
|
|
||||||
class AddTorus(Operator, object_utils.AddObjectHelper):
|
class AddTorus(Operator, object_utils.AddObjectHelper):
|
||||||
'''Add a torus mesh'''
|
"""Add a torus mesh"""
|
||||||
bl_idname = "mesh.primitive_torus_add"
|
bl_idname = "mesh.primitive_torus_add"
|
||||||
bl_label = "Add Torus"
|
bl_label = "Add Torus"
|
||||||
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
|
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ from bpy.props import StringProperty
|
|||||||
|
|
||||||
|
|
||||||
class EditExternally(Operator):
|
class EditExternally(Operator):
|
||||||
'''Edit image in an external application'''
|
"""Edit image in an external application"""
|
||||||
bl_idname = "image.external_edit"
|
bl_idname = "image.external_edit"
|
||||||
bl_label = "Image Edit Externally"
|
bl_label = "Image Edit Externally"
|
||||||
bl_options = {'REGISTER'}
|
bl_options = {'REGISTER'}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ from bpy.props import EnumProperty
|
|||||||
|
|
||||||
|
|
||||||
class MeshMirrorUV(Operator):
|
class MeshMirrorUV(Operator):
|
||||||
'''Copy mirror UV coordinates on the X axis based on a mirrored mesh'''
|
"""Copy mirror UV coordinates on the X axis based on a mirrored mesh"""
|
||||||
bl_idname = "mesh.faces_mirror_uv"
|
bl_idname = "mesh.faces_mirror_uv"
|
||||||
bl_label = "Copy Mirrored UV coords"
|
bl_label = "Copy Mirrored UV coords"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ from bpy.props import (StringProperty,
|
|||||||
|
|
||||||
|
|
||||||
class SelectPattern(Operator):
|
class SelectPattern(Operator):
|
||||||
'''Select objects matching a naming pattern'''
|
"""Select objects matching a naming pattern"""
|
||||||
bl_idname = "object.select_pattern"
|
bl_idname = "object.select_pattern"
|
||||||
bl_label = "Select Pattern"
|
bl_label = "Select Pattern"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
@@ -105,7 +105,7 @@ class SelectPattern(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class SelectCamera(Operator):
|
class SelectCamera(Operator):
|
||||||
'''Select the active camera'''
|
"""Select the active camera"""
|
||||||
bl_idname = "object.select_camera"
|
bl_idname = "object.select_camera"
|
||||||
bl_label = "Select Camera"
|
bl_label = "Select Camera"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
@@ -131,7 +131,7 @@ class SelectCamera(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class SelectHierarchy(Operator):
|
class SelectHierarchy(Operator):
|
||||||
"""Select object relative to the active object's position """
|
"""Select object relative to the active object's position """ \
|
||||||
"""in the hierarchy"""
|
"""in the hierarchy"""
|
||||||
bl_idname = "object.select_hierarchy"
|
bl_idname = "object.select_hierarchy"
|
||||||
bl_label = "Select Hierarchy"
|
bl_label = "Select Hierarchy"
|
||||||
@@ -198,7 +198,7 @@ class SelectHierarchy(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class SubdivisionSet(Operator):
|
class SubdivisionSet(Operator):
|
||||||
'''Sets a Subdivision Surface Level (1-5)'''
|
"""Sets a Subdivision Surface Level (1-5)"""
|
||||||
|
|
||||||
bl_idname = "object.subdivision_set"
|
bl_idname = "object.subdivision_set"
|
||||||
bl_label = "Subdivision Set"
|
bl_label = "Subdivision Set"
|
||||||
@@ -278,7 +278,7 @@ class SubdivisionSet(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class ShapeTransfer(Operator):
|
class ShapeTransfer(Operator):
|
||||||
"""Copy another selected objects active shape to this one by """
|
"""Copy another selected objects active shape to this one by """ \
|
||||||
"""applying the relative offsets"""
|
"""applying the relative offsets"""
|
||||||
|
|
||||||
bl_idname = "object.shape_key_transfer"
|
bl_idname = "object.shape_key_transfer"
|
||||||
@@ -468,7 +468,7 @@ class ShapeTransfer(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class JoinUVs(Operator):
|
class JoinUVs(Operator):
|
||||||
'''Copy UV Layout to objects with matching geometry'''
|
"""Copy UV Layout to objects with matching geometry"""
|
||||||
bl_idname = "object.join_uvs"
|
bl_idname = "object.join_uvs"
|
||||||
bl_label = "Join as UVs"
|
bl_label = "Join as UVs"
|
||||||
|
|
||||||
@@ -547,7 +547,7 @@ class JoinUVs(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class MakeDupliFace(Operator):
|
class MakeDupliFace(Operator):
|
||||||
'''Make linked objects into dupli-faces'''
|
"""Make linked objects into dupli-faces"""
|
||||||
bl_idname = "object.make_dupli_face"
|
bl_idname = "object.make_dupli_face"
|
||||||
bl_label = "Make Dupli-Face"
|
bl_label = "Make Dupli-Face"
|
||||||
|
|
||||||
@@ -642,7 +642,7 @@ class IsolateTypeRender(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class ClearAllRestrictRender(Operator):
|
class ClearAllRestrictRender(Operator):
|
||||||
'''Reveal all render objects by setting the hide render flag'''
|
"""Reveal all render objects by setting the hide render flag"""
|
||||||
bl_idname = "object.hide_render_clear_all"
|
bl_idname = "object.hide_render_clear_all"
|
||||||
bl_label = "Clear All Restrict Render"
|
bl_label = "Clear All Restrict Render"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
@@ -654,7 +654,7 @@ class ClearAllRestrictRender(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class TransformsToDeltasAnim(Operator):
|
class TransformsToDeltasAnim(Operator):
|
||||||
'''Convert object animation for normal transforms to delta transforms'''
|
"""Convert object animation for normal transforms to delta transforms"""
|
||||||
bl_idname = "object.anim_transforms_to_deltas"
|
bl_idname = "object.anim_transforms_to_deltas"
|
||||||
bl_label = "Animated Transforms to Deltas"
|
bl_label = "Animated Transforms to Deltas"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
@@ -700,7 +700,7 @@ class TransformsToDeltasAnim(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class DupliOffsetFromCursor(Operator):
|
class DupliOffsetFromCursor(Operator):
|
||||||
'''Set offset used for DupliGroup based on cursor position'''
|
"""Set offset used for DupliGroup based on cursor position"""
|
||||||
bl_idname = "object.dupli_offset_from_cursor"
|
bl_idname = "object.dupli_offset_from_cursor"
|
||||||
bl_label = "Set Offset From Cursor"
|
bl_label = "Set Offset From Cursor"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ from bpy.props import EnumProperty, BoolProperty
|
|||||||
|
|
||||||
|
|
||||||
class AlignObjects(Operator):
|
class AlignObjects(Operator):
|
||||||
'''Align Objects'''
|
"""Align Objects"""
|
||||||
bl_idname = "object.align"
|
bl_idname = "object.align"
|
||||||
bl_label = "Align Objects"
|
bl_label = "Align Objects"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ from bpy.props import (IntProperty,
|
|||||||
|
|
||||||
|
|
||||||
class RandomizeLocRotSize(Operator):
|
class RandomizeLocRotSize(Operator):
|
||||||
'''Randomize objects loc/rot/scale'''
|
"""Randomize objects loc/rot/scale"""
|
||||||
bl_idname = "object.randomize_transform"
|
bl_idname = "object.randomize_transform"
|
||||||
bl_label = "Randomize Transform"
|
bl_label = "Randomize Transform"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
|
|||||||
@@ -24,10 +24,10 @@ from bpy.props import StringProperty, BoolProperty
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetBase():
|
class AddPresetBase():
|
||||||
'''Base preset class, only for subclassing
|
"""Base preset class, only for subclassing
|
||||||
subclasses must define
|
subclasses must define
|
||||||
- preset_values
|
- preset_values
|
||||||
- preset_subdir '''
|
- preset_subdir """
|
||||||
# bl_idname = "script.preset_base_add"
|
# bl_idname = "script.preset_base_add"
|
||||||
# bl_label = "Add a Python Preset"
|
# bl_label = "Add a Python Preset"
|
||||||
bl_options = {'REGISTER'} # only because invoke_props_popup requires.
|
bl_options = {'REGISTER'} # only because invoke_props_popup requires.
|
||||||
@@ -179,7 +179,7 @@ class AddPresetBase():
|
|||||||
|
|
||||||
|
|
||||||
class ExecutePreset(Operator):
|
class ExecutePreset(Operator):
|
||||||
'''Execute a preset'''
|
"""Execute a preset"""
|
||||||
bl_idname = "script.execute_preset"
|
bl_idname = "script.execute_preset"
|
||||||
bl_label = "Execute a Python Preset"
|
bl_label = "Execute a Python Preset"
|
||||||
|
|
||||||
@@ -217,7 +217,7 @@ class ExecutePreset(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetRender(AddPresetBase, Operator):
|
class AddPresetRender(AddPresetBase, Operator):
|
||||||
'''Add a Render Preset'''
|
"""Add a Render Preset"""
|
||||||
bl_idname = "render.preset_add"
|
bl_idname = "render.preset_add"
|
||||||
bl_label = "Add Render Preset"
|
bl_label = "Add Render Preset"
|
||||||
preset_menu = "RENDER_MT_presets"
|
preset_menu = "RENDER_MT_presets"
|
||||||
@@ -243,7 +243,7 @@ class AddPresetRender(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetCamera(AddPresetBase, Operator):
|
class AddPresetCamera(AddPresetBase, Operator):
|
||||||
'''Add a Camera Preset'''
|
"""Add a Camera Preset"""
|
||||||
bl_idname = "camera.preset_add"
|
bl_idname = "camera.preset_add"
|
||||||
bl_label = "Add Camera Preset"
|
bl_label = "Add Camera Preset"
|
||||||
preset_menu = "CAMERA_MT_presets"
|
preset_menu = "CAMERA_MT_presets"
|
||||||
@@ -262,7 +262,7 @@ class AddPresetCamera(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetSSS(AddPresetBase, Operator):
|
class AddPresetSSS(AddPresetBase, Operator):
|
||||||
'''Add a Subsurface Scattering Preset'''
|
"""Add a Subsurface Scattering Preset"""
|
||||||
bl_idname = "material.sss_preset_add"
|
bl_idname = "material.sss_preset_add"
|
||||||
bl_label = "Add SSS Preset"
|
bl_label = "Add SSS Preset"
|
||||||
preset_menu = "MATERIAL_MT_sss_presets"
|
preset_menu = "MATERIAL_MT_sss_presets"
|
||||||
@@ -290,7 +290,7 @@ class AddPresetSSS(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetCloth(AddPresetBase, Operator):
|
class AddPresetCloth(AddPresetBase, Operator):
|
||||||
'''Add a Cloth Preset'''
|
"""Add a Cloth Preset"""
|
||||||
bl_idname = "cloth.preset_add"
|
bl_idname = "cloth.preset_add"
|
||||||
bl_label = "Add Cloth Preset"
|
bl_label = "Add Cloth Preset"
|
||||||
preset_menu = "CLOTH_MT_presets"
|
preset_menu = "CLOTH_MT_presets"
|
||||||
@@ -312,7 +312,7 @@ class AddPresetCloth(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetFluid(AddPresetBase, Operator):
|
class AddPresetFluid(AddPresetBase, Operator):
|
||||||
'''Add a Fluid Preset'''
|
"""Add a Fluid Preset"""
|
||||||
bl_idname = "fluid.preset_add"
|
bl_idname = "fluid.preset_add"
|
||||||
bl_label = "Add Fluid Preset"
|
bl_label = "Add Fluid Preset"
|
||||||
preset_menu = "FLUID_MT_presets"
|
preset_menu = "FLUID_MT_presets"
|
||||||
@@ -330,7 +330,7 @@ class AddPresetFluid(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetSunSky(AddPresetBase, Operator):
|
class AddPresetSunSky(AddPresetBase, Operator):
|
||||||
'''Add a Sky & Atmosphere Preset'''
|
"""Add a Sky & Atmosphere Preset"""
|
||||||
bl_idname = "lamp.sunsky_preset_add"
|
bl_idname = "lamp.sunsky_preset_add"
|
||||||
bl_label = "Add Sunsky Preset"
|
bl_label = "Add Sunsky Preset"
|
||||||
preset_menu = "LAMP_MT_sunsky_presets"
|
preset_menu = "LAMP_MT_sunsky_presets"
|
||||||
@@ -359,7 +359,7 @@ class AddPresetSunSky(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetInteraction(AddPresetBase, Operator):
|
class AddPresetInteraction(AddPresetBase, Operator):
|
||||||
'''Add an Application Interaction Preset'''
|
"""Add an Application Interaction Preset"""
|
||||||
bl_idname = "wm.interaction_preset_add"
|
bl_idname = "wm.interaction_preset_add"
|
||||||
bl_label = "Add Interaction Preset"
|
bl_label = "Add Interaction Preset"
|
||||||
preset_menu = "USERPREF_MT_interaction_presets"
|
preset_menu = "USERPREF_MT_interaction_presets"
|
||||||
@@ -385,7 +385,7 @@ class AddPresetInteraction(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetTrackingCamera(AddPresetBase, Operator):
|
class AddPresetTrackingCamera(AddPresetBase, Operator):
|
||||||
'''Add a Tracking Camera Intrinsics Preset'''
|
"""Add a Tracking Camera Intrinsics Preset"""
|
||||||
bl_idname = "clip.camera_preset_add"
|
bl_idname = "clip.camera_preset_add"
|
||||||
bl_label = "Add Camera Preset"
|
bl_label = "Add Camera Preset"
|
||||||
preset_menu = "CLIP_MT_camera_presets"
|
preset_menu = "CLIP_MT_camera_presets"
|
||||||
@@ -408,7 +408,7 @@ class AddPresetTrackingCamera(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetTrackingTrackColor(AddPresetBase, Operator):
|
class AddPresetTrackingTrackColor(AddPresetBase, Operator):
|
||||||
'''Add a Clip Track Color Preset'''
|
"""Add a Clip Track Color Preset"""
|
||||||
bl_idname = "clip.track_color_preset_add"
|
bl_idname = "clip.track_color_preset_add"
|
||||||
bl_label = "Add Track Color Preset"
|
bl_label = "Add Track Color Preset"
|
||||||
preset_menu = "CLIP_MT_track_color_presets"
|
preset_menu = "CLIP_MT_track_color_presets"
|
||||||
@@ -426,7 +426,7 @@ class AddPresetTrackingTrackColor(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetTrackingSettings(AddPresetBase, Operator):
|
class AddPresetTrackingSettings(AddPresetBase, Operator):
|
||||||
'''Add a motion tracking settings preset'''
|
"""Add a motion tracking settings preset"""
|
||||||
bl_idname = "clip.tracking_settings_preset_add"
|
bl_idname = "clip.tracking_settings_preset_add"
|
||||||
bl_label = "Add Tracking Settings Preset"
|
bl_label = "Add Tracking Settings Preset"
|
||||||
preset_menu = "CLIP_MT_tracking_settings_presets"
|
preset_menu = "CLIP_MT_tracking_settings_presets"
|
||||||
@@ -453,7 +453,7 @@ class AddPresetTrackingSettings(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetNodeColor(AddPresetBase, Operator):
|
class AddPresetNodeColor(AddPresetBase, Operator):
|
||||||
'''Add a Node Color Preset'''
|
"""Add a Node Color Preset"""
|
||||||
bl_idname = "node.node_color_preset_add"
|
bl_idname = "node.node_color_preset_add"
|
||||||
bl_label = "Add Node Color Preset"
|
bl_label = "Add Node Color Preset"
|
||||||
preset_menu = "NODE_MT_node_color_presets"
|
preset_menu = "NODE_MT_node_color_presets"
|
||||||
@@ -471,7 +471,7 @@ class AddPresetNodeColor(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetInterfaceTheme(AddPresetBase, Operator):
|
class AddPresetInterfaceTheme(AddPresetBase, Operator):
|
||||||
'''Add a theme preset'''
|
"""Add a theme preset"""
|
||||||
bl_idname = "wm.interface_theme_preset_add"
|
bl_idname = "wm.interface_theme_preset_add"
|
||||||
bl_label = "Add Tracking Settings Preset"
|
bl_label = "Add Tracking Settings Preset"
|
||||||
preset_menu = "USERPREF_MT_interface_theme_presets"
|
preset_menu = "USERPREF_MT_interface_theme_presets"
|
||||||
@@ -479,7 +479,7 @@ class AddPresetInterfaceTheme(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetKeyconfig(AddPresetBase, Operator):
|
class AddPresetKeyconfig(AddPresetBase, Operator):
|
||||||
'''Add a Key-config Preset'''
|
"""Add a Key-config Preset"""
|
||||||
bl_idname = "wm.keyconfig_preset_add"
|
bl_idname = "wm.keyconfig_preset_add"
|
||||||
bl_label = "Add Keyconfig Preset"
|
bl_label = "Add Keyconfig Preset"
|
||||||
preset_menu = "USERPREF_MT_keyconfigs"
|
preset_menu = "USERPREF_MT_keyconfigs"
|
||||||
@@ -502,7 +502,7 @@ class AddPresetKeyconfig(AddPresetBase, Operator):
|
|||||||
|
|
||||||
|
|
||||||
class AddPresetOperator(AddPresetBase, Operator):
|
class AddPresetOperator(AddPresetBase, Operator):
|
||||||
'''Add an Application Interaction Preset'''
|
"""Add an Application Interaction Preset"""
|
||||||
bl_idname = "wm.operator_preset_add"
|
bl_idname = "wm.operator_preset_add"
|
||||||
bl_label = "Operator Preset"
|
bl_label = "Operator Preset"
|
||||||
preset_menu = "WM_MT_operator_presets"
|
preset_menu = "WM_MT_operator_presets"
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ def guess_player_path(preset):
|
|||||||
|
|
||||||
|
|
||||||
class PlayRenderedAnim(Operator):
|
class PlayRenderedAnim(Operator):
|
||||||
'''Play back rendered frames/movies using an external player'''
|
"""Play back rendered frames/movies using an external player"""
|
||||||
bl_idname = "render.play_rendered_anim"
|
bl_idname = "render.play_rendered_anim"
|
||||||
bl_label = "Play Rendered Animation"
|
bl_label = "Play Rendered Animation"
|
||||||
bl_options = {'REGISTER'}
|
bl_options = {'REGISTER'}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ from bpy.props import IntProperty
|
|||||||
|
|
||||||
|
|
||||||
class SequencerCrossfadeSounds(Operator):
|
class SequencerCrossfadeSounds(Operator):
|
||||||
'''Do cross-fading volume animation of two selected sound strips'''
|
"""Do cross-fading volume animation of two selected sound strips"""
|
||||||
|
|
||||||
bl_idname = "sequencer.crossfade_sounds"
|
bl_idname = "sequencer.crossfade_sounds"
|
||||||
bl_label = "Crossfade sounds"
|
bl_label = "Crossfade sounds"
|
||||||
@@ -76,7 +76,7 @@ class SequencerCrossfadeSounds(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class SequencerCutMulticam(Operator):
|
class SequencerCutMulticam(Operator):
|
||||||
'''Cut multi-cam strip and select camera'''
|
"""Cut multi-cam strip and select camera"""
|
||||||
|
|
||||||
bl_idname = "sequencer.cut_multicam"
|
bl_idname = "sequencer.cut_multicam"
|
||||||
bl_label = "Cut multicam"
|
bl_label = "Cut multicam"
|
||||||
@@ -118,7 +118,7 @@ class SequencerCutMulticam(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class SequencerDeinterlaceSelectedMovies(Operator):
|
class SequencerDeinterlaceSelectedMovies(Operator):
|
||||||
'''Deinterlace all selected movie sources'''
|
"""Deinterlace all selected movie sources"""
|
||||||
|
|
||||||
bl_idname = "sequencer.deinterlace_selected_movies"
|
bl_idname = "sequencer.deinterlace_selected_movies"
|
||||||
bl_label = "Deinterlace Movies"
|
bl_label = "Deinterlace Movies"
|
||||||
|
|||||||
@@ -46,11 +46,11 @@ def extend(obj, operator, EXTEND_MODE):
|
|||||||
OTHER_INDEX = 2, 3, 0, 1
|
OTHER_INDEX = 2, 3, 0, 1
|
||||||
|
|
||||||
def extend_uvs(face_source, face_target, edge_key):
|
def extend_uvs(face_source, face_target, edge_key):
|
||||||
'''
|
"""
|
||||||
Takes 2 faces,
|
Takes 2 faces,
|
||||||
Projects its extends its UV coords onto the face next to it.
|
Projects its extends its UV coords onto the face next to it.
|
||||||
Both faces must share an edge
|
Both faces must share an edge
|
||||||
'''
|
"""
|
||||||
|
|
||||||
def face_edge_vs(vi):
|
def face_edge_vs(vi):
|
||||||
vlen = len(vi)
|
vlen = len(vi)
|
||||||
@@ -224,7 +224,7 @@ def main(context, operator):
|
|||||||
|
|
||||||
|
|
||||||
class FollowActiveQuads(Operator):
|
class FollowActiveQuads(Operator):
|
||||||
'''Follow UVs from active quads along continuous face loops'''
|
"""Follow UVs from active quads along continuous face loops"""
|
||||||
bl_idname = "uv.follow_active_quads"
|
bl_idname = "uv.follow_active_quads"
|
||||||
bl_label = "Follow Active Quads"
|
bl_label = "Follow Active Quads"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
|
|||||||
@@ -197,12 +197,12 @@ def lightmap_uvpack(meshes,
|
|||||||
PREF_BOX_DIV=8,
|
PREF_BOX_DIV=8,
|
||||||
PREF_MARGIN_DIV=512
|
PREF_MARGIN_DIV=512
|
||||||
):
|
):
|
||||||
'''
|
"""
|
||||||
BOX_DIV if the maximum division of the UV map that
|
BOX_DIV if the maximum division of the UV map that
|
||||||
a box may be consolidated into.
|
a box may be consolidated into.
|
||||||
Basically, a lower value will be slower but waist less space
|
Basically, a lower value will be slower but waist less space
|
||||||
and a higher value will have more clumpy boxes but more wasted space
|
and a higher value will have more clumpy boxes but more wasted space
|
||||||
'''
|
"""
|
||||||
import time
|
import time
|
||||||
from math import sqrt
|
from math import sqrt
|
||||||
|
|
||||||
@@ -545,7 +545,7 @@ from bpy.props import BoolProperty, FloatProperty, IntProperty
|
|||||||
|
|
||||||
|
|
||||||
class LightMapPack(Operator):
|
class LightMapPack(Operator):
|
||||||
'''Follow UVs from active quads along continuous face loops'''
|
"""Follow UVs from active quads along continuous face loops"""
|
||||||
bl_idname = "uv.lightmap_pack"
|
bl_idname = "uv.lightmap_pack"
|
||||||
bl_label = "Lightmap Pack"
|
bl_label = "Lightmap Pack"
|
||||||
|
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ def mergeUvIslands(islandList):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if Intersect == 2: # Source inside target
|
if Intersect == 2: # Source inside target
|
||||||
'''
|
"""
|
||||||
We have an intersection, if we are inside the target
|
We have an intersection, if we are inside the target
|
||||||
then move us 1 whole width across,
|
then move us 1 whole width across,
|
||||||
Its possible this is a bad idea since 2 skinny Angular faces
|
Its possible this is a bad idea since 2 skinny Angular faces
|
||||||
@@ -500,7 +500,7 @@ def mergeUvIslands(islandList):
|
|||||||
since we have already tested for it.
|
since we have already tested for it.
|
||||||
|
|
||||||
It gives about 10% speedup with minimal errors.
|
It gives about 10% speedup with minimal errors.
|
||||||
'''
|
"""
|
||||||
# Move the test along its width + SMALL_NUM
|
# Move the test along its width + SMALL_NUM
|
||||||
#boxLeft += sourceIsland[4] + SMALL_NUM
|
#boxLeft += sourceIsland[4] + SMALL_NUM
|
||||||
boxLeft += sourceIsland[4]
|
boxLeft += sourceIsland[4]
|
||||||
@@ -694,11 +694,11 @@ def packIslands(islandList):
|
|||||||
islandIdx -=1
|
islandIdx -=1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
'''Save the offset to be applied later,
|
"""Save the offset to be applied later,
|
||||||
we could apply to the UVs now and allign them to the bottom left hand area
|
we could apply to the UVs now and allign them to the bottom left hand area
|
||||||
of the UV coords like the box packer imagines they are
|
of the UV coords like the box packer imagines they are
|
||||||
but, its quicker just to remember their offset and
|
but, its quicker just to remember their offset and
|
||||||
apply the packing and offset in 1 pass '''
|
apply the packing and offset in 1 pass """
|
||||||
islandOffsetList.append((minx, miny))
|
islandOffsetList.append((minx, miny))
|
||||||
|
|
||||||
# Add to boxList. use the island idx for the BOX id.
|
# Add to boxList. use the island idx for the BOX id.
|
||||||
@@ -1104,8 +1104,9 @@ from bpy.props import FloatProperty
|
|||||||
|
|
||||||
|
|
||||||
class SmartProject(Operator):
|
class SmartProject(Operator):
|
||||||
'''This script projection unwraps the selected faces of a mesh ''' \
|
"""This script projection unwraps the selected faces of a mesh """ \
|
||||||
'''(it operates on all selected mesh objects, and can be used to unwrap selected faces, or all faces)'''
|
"""(it operates on all selected mesh objects, and can be used """ \
|
||||||
|
"""to unwrap selected faces, or all faces)"""
|
||||||
bl_idname = "uv.smart_project"
|
bl_idname = "uv.smart_project"
|
||||||
bl_label = "Smart UV Project"
|
bl_label = "Smart UV Project"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ from rna_prop_ui import rna_idprop_ui_prop_get, rna_idprop_ui_prop_clear
|
|||||||
|
|
||||||
|
|
||||||
class MESH_OT_delete_edgeloop(Operator):
|
class MESH_OT_delete_edgeloop(Operator):
|
||||||
'''Delete an edge loop by merging the faces on each side to a single face loop'''
|
"""Delete an edge loop by merging the faces on each side """ \
|
||||||
|
"""to a single face loop"""
|
||||||
bl_idname = "mesh.delete_edgeloop"
|
bl_idname = "mesh.delete_edgeloop"
|
||||||
bl_label = "Delete Edge Loop"
|
bl_label = "Delete Edge Loop"
|
||||||
|
|
||||||
@@ -173,7 +174,7 @@ class BRUSH_OT_active_index_set(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_set_boolean(Operator):
|
class WM_OT_context_set_boolean(Operator):
|
||||||
'''Set a context value'''
|
"""Set a context value"""
|
||||||
bl_idname = "wm.context_set_boolean"
|
bl_idname = "wm.context_set_boolean"
|
||||||
bl_label = "Context Set Boolean"
|
bl_label = "Context Set Boolean"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -189,7 +190,7 @@ class WM_OT_context_set_boolean(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_set_int(Operator): # same as enum
|
class WM_OT_context_set_int(Operator): # same as enum
|
||||||
'''Set a context value'''
|
"""Set a context value"""
|
||||||
bl_idname = "wm.context_set_int"
|
bl_idname = "wm.context_set_int"
|
||||||
bl_label = "Context Set"
|
bl_label = "Context Set"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -206,7 +207,7 @@ class WM_OT_context_set_int(Operator): # same as enum
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_scale_int(Operator):
|
class WM_OT_context_scale_int(Operator):
|
||||||
'''Scale an int context value'''
|
"""Scale an int context value"""
|
||||||
bl_idname = "wm.context_scale_int"
|
bl_idname = "wm.context_scale_int"
|
||||||
bl_label = "Context Set"
|
bl_label = "Context Set"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -249,7 +250,7 @@ class WM_OT_context_scale_int(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_set_float(Operator): # same as enum
|
class WM_OT_context_set_float(Operator): # same as enum
|
||||||
'''Set a context value'''
|
"""Set a context value"""
|
||||||
bl_idname = "wm.context_set_float"
|
bl_idname = "wm.context_set_float"
|
||||||
bl_label = "Context Set Float"
|
bl_label = "Context Set Float"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -266,7 +267,7 @@ class WM_OT_context_set_float(Operator): # same as enum
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_set_string(Operator): # same as enum
|
class WM_OT_context_set_string(Operator): # same as enum
|
||||||
'''Set a context value'''
|
"""Set a context value"""
|
||||||
bl_idname = "wm.context_set_string"
|
bl_idname = "wm.context_set_string"
|
||||||
bl_label = "Context Set String"
|
bl_label = "Context Set String"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -282,7 +283,7 @@ class WM_OT_context_set_string(Operator): # same as enum
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_set_enum(Operator):
|
class WM_OT_context_set_enum(Operator):
|
||||||
'''Set a context value'''
|
"""Set a context value"""
|
||||||
bl_idname = "wm.context_set_enum"
|
bl_idname = "wm.context_set_enum"
|
||||||
bl_label = "Context Set Enum"
|
bl_label = "Context Set Enum"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -298,7 +299,7 @@ class WM_OT_context_set_enum(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_set_value(Operator):
|
class WM_OT_context_set_value(Operator):
|
||||||
'''Set a context value'''
|
"""Set a context value"""
|
||||||
bl_idname = "wm.context_set_value"
|
bl_idname = "wm.context_set_value"
|
||||||
bl_label = "Context Set Value"
|
bl_label = "Context Set Value"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -319,7 +320,7 @@ class WM_OT_context_set_value(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_toggle(Operator):
|
class WM_OT_context_toggle(Operator):
|
||||||
'''Toggle a context value'''
|
"""Toggle a context value"""
|
||||||
bl_idname = "wm.context_toggle"
|
bl_idname = "wm.context_toggle"
|
||||||
bl_label = "Context Toggle"
|
bl_label = "Context Toggle"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -338,7 +339,7 @@ class WM_OT_context_toggle(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_toggle_enum(Operator):
|
class WM_OT_context_toggle_enum(Operator):
|
||||||
'''Toggle a context value'''
|
"""Toggle a context value"""
|
||||||
bl_idname = "wm.context_toggle_enum"
|
bl_idname = "wm.context_toggle_enum"
|
||||||
bl_label = "Context Toggle Values"
|
bl_label = "Context Toggle Values"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -371,7 +372,7 @@ class WM_OT_context_toggle_enum(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_cycle_int(Operator):
|
class WM_OT_context_cycle_int(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"""
|
||||||
bl_idname = "wm.context_cycle_int"
|
bl_idname = "wm.context_cycle_int"
|
||||||
bl_label = "Context Int Cycle"
|
bl_label = "Context Int Cycle"
|
||||||
@@ -406,7 +407,7 @@ class WM_OT_context_cycle_int(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_cycle_enum(Operator):
|
class WM_OT_context_cycle_enum(Operator):
|
||||||
'''Toggle a context value'''
|
"""Toggle a context value"""
|
||||||
bl_idname = "wm.context_cycle_enum"
|
bl_idname = "wm.context_cycle_enum"
|
||||||
bl_label = "Context Enum Cycle"
|
bl_label = "Context Enum Cycle"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -458,8 +459,8 @@ class WM_OT_context_cycle_enum(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_cycle_array(Operator):
|
class WM_OT_context_cycle_array(Operator):
|
||||||
'''Set a context array value. '''
|
"""Set a context array value """ \
|
||||||
'''Useful for cycling the active mesh edit mode'''
|
"""(useful for cycling the active mesh edit mode)"""
|
||||||
bl_idname = "wm.context_cycle_array"
|
bl_idname = "wm.context_cycle_array"
|
||||||
bl_label = "Context Array Cycle"
|
bl_label = "Context Array Cycle"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -519,7 +520,7 @@ class WM_OT_context_menu_enum(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_set_id(Operator):
|
class WM_OT_context_set_id(Operator):
|
||||||
'''Toggle a context value'''
|
"""Toggle a context value"""
|
||||||
bl_idname = "wm.context_set_id"
|
bl_idname = "wm.context_set_id"
|
||||||
bl_label = "Set Library ID"
|
bl_label = "Set Library ID"
|
||||||
bl_options = {'UNDO', 'INTERNAL'}
|
bl_options = {'UNDO', 'INTERNAL'}
|
||||||
@@ -575,7 +576,7 @@ data_path_item = StringProperty(
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_collection_boolean_set(Operator):
|
class WM_OT_context_collection_boolean_set(Operator):
|
||||||
'''Set boolean values for a collection of items'''
|
"""Set boolean values for a collection of items"""
|
||||||
bl_idname = "wm.context_collection_boolean_set"
|
bl_idname = "wm.context_collection_boolean_set"
|
||||||
bl_label = "Context Collection Boolean Set"
|
bl_label = "Context Collection Boolean Set"
|
||||||
bl_options = {'UNDO', 'REGISTER', 'INTERNAL'}
|
bl_options = {'UNDO', 'REGISTER', 'INTERNAL'}
|
||||||
@@ -634,7 +635,7 @@ class WM_OT_context_collection_boolean_set(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_context_modal_mouse(Operator):
|
class WM_OT_context_modal_mouse(Operator):
|
||||||
'''Adjust arbitrary values with mouse input'''
|
"""Adjust arbitrary values with mouse input"""
|
||||||
bl_idname = "wm.context_modal_mouse"
|
bl_idname = "wm.context_modal_mouse"
|
||||||
bl_label = "Context Modal Mouse"
|
bl_label = "Context Modal Mouse"
|
||||||
bl_options = {'GRAB_POINTER', 'BLOCKING', 'UNDO', 'INTERNAL'}
|
bl_options = {'GRAB_POINTER', 'BLOCKING', 'UNDO', 'INTERNAL'}
|
||||||
@@ -836,7 +837,7 @@ def _wm_doc_get_id(doc_id, do_url=True, url_prefix=""):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_doc_view_manual(Operator):
|
class WM_OT_doc_view_manual(Operator):
|
||||||
'''Load online manual'''
|
"""Load online manual"""
|
||||||
bl_idname = "wm.doc_view_manual"
|
bl_idname = "wm.doc_view_manual"
|
||||||
bl_label = "View Manual"
|
bl_label = "View Manual"
|
||||||
|
|
||||||
@@ -881,7 +882,7 @@ class WM_OT_doc_view_manual(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_doc_view(Operator):
|
class WM_OT_doc_view(Operator):
|
||||||
'''Load online reference docs'''
|
"""Load online reference docs"""
|
||||||
bl_idname = "wm.doc_view"
|
bl_idname = "wm.doc_view"
|
||||||
bl_label = "View Documentation"
|
bl_label = "View Documentation"
|
||||||
|
|
||||||
@@ -905,7 +906,7 @@ class WM_OT_doc_view(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_doc_edit(Operator):
|
class WM_OT_doc_edit(Operator):
|
||||||
'''Load online reference docs'''
|
"""Load online reference docs"""
|
||||||
bl_idname = "wm.doc_edit"
|
bl_idname = "wm.doc_edit"
|
||||||
bl_label = "Edit Documentation"
|
bl_label = "Edit Documentation"
|
||||||
|
|
||||||
@@ -1008,7 +1009,7 @@ rna_max = FloatProperty(
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_properties_edit(Operator):
|
class WM_OT_properties_edit(Operator):
|
||||||
'''Internal use (edit a property data_path)'''
|
"""Internal use (edit a property data_path)"""
|
||||||
bl_idname = "wm.properties_edit"
|
bl_idname = "wm.properties_edit"
|
||||||
bl_label = "Edit Property"
|
bl_label = "Edit Property"
|
||||||
bl_options = {'REGISTER'} # only because invoke_props_popup requires.
|
bl_options = {'REGISTER'} # only because invoke_props_popup requires.
|
||||||
@@ -1094,7 +1095,7 @@ class WM_OT_properties_edit(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_properties_add(Operator):
|
class WM_OT_properties_add(Operator):
|
||||||
'''Internal use (edit a property data_path)'''
|
"""Internal use (edit a property data_path)"""
|
||||||
bl_idname = "wm.properties_add"
|
bl_idname = "wm.properties_add"
|
||||||
bl_label = "Add Property"
|
bl_label = "Add Property"
|
||||||
bl_options = {'UNDO'}
|
bl_options = {'UNDO'}
|
||||||
@@ -1137,7 +1138,7 @@ class WM_OT_properties_context_change(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_properties_remove(Operator):
|
class WM_OT_properties_remove(Operator):
|
||||||
'''Internal use (edit a property data_path)'''
|
"""Internal use (edit a property data_path)"""
|
||||||
bl_idname = "wm.properties_remove"
|
bl_idname = "wm.properties_remove"
|
||||||
bl_label = "Remove Property"
|
bl_label = "Remove Property"
|
||||||
bl_options = {'UNDO'}
|
bl_options = {'UNDO'}
|
||||||
@@ -1203,7 +1204,7 @@ class WM_OT_appconfig_activate(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_sysinfo(Operator):
|
class WM_OT_sysinfo(Operator):
|
||||||
'''Generate System Info'''
|
"""Generate System Info"""
|
||||||
bl_idname = "wm.sysinfo"
|
bl_idname = "wm.sysinfo"
|
||||||
bl_label = "System Info"
|
bl_label = "System Info"
|
||||||
|
|
||||||
@@ -1214,7 +1215,7 @@ class WM_OT_sysinfo(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_copy_prev_settings(Operator):
|
class WM_OT_copy_prev_settings(Operator):
|
||||||
'''Copy settings from previous version'''
|
"""Copy settings from previous version"""
|
||||||
bl_idname = "wm.copy_prev_settings"
|
bl_idname = "wm.copy_prev_settings"
|
||||||
bl_label = "Copy Previous Settings"
|
bl_label = "Copy Previous Settings"
|
||||||
|
|
||||||
@@ -1251,7 +1252,7 @@ class WM_OT_copy_prev_settings(Operator):
|
|||||||
|
|
||||||
|
|
||||||
class WM_OT_blenderplayer_start(Operator):
|
class WM_OT_blenderplayer_start(Operator):
|
||||||
'''Launch the blender-player with the current blend-file'''
|
"""Launch the blender-player with the current blend-file"""
|
||||||
bl_idname = "wm.blenderplayer_start"
|
bl_idname = "wm.blenderplayer_start"
|
||||||
bl_label = "Start Game In Player"
|
bl_label = "Start Game In Player"
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class CurveButtonsPanel():
|
|||||||
|
|
||||||
|
|
||||||
class CurveButtonsPanelCurve(CurveButtonsPanel):
|
class CurveButtonsPanelCurve(CurveButtonsPanel):
|
||||||
'''Same as above but for curves only'''
|
"""Same as above but for curves only"""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
@@ -41,7 +41,7 @@ class CurveButtonsPanelCurve(CurveButtonsPanel):
|
|||||||
|
|
||||||
|
|
||||||
class CurveButtonsPanelActive(CurveButtonsPanel):
|
class CurveButtonsPanelActive(CurveButtonsPanel):
|
||||||
'''Same as above but for curves only'''
|
"""Same as above but for curves only"""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
|||||||
Reference in New Issue
Block a user