diff options
Diffstat (limited to 'render_copy_settings/__init__.py')
-rw-r--r-- | render_copy_settings/__init__.py | 61 |
1 files changed, 32 insertions, 29 deletions
diff --git a/render_copy_settings/__init__.py b/render_copy_settings/__init__.py index ee02f38c..bf433b35 100644 --- a/render_copy_settings/__init__.py +++ b/render_copy_settings/__init__.py @@ -33,30 +33,23 @@ # Renamed in “Render Copy Settings”. # Huge changes: # * It is now possible to individually copy each render setting. -# * It is now possible to individually select each affected scene, and then filter them out -# even further with a regex. -# WARNING: this addon now needs a Blender patched with the ui_template_list diff, else it won’t -# be fully functional… +# * It is now possible to individually select each affected scene, and +# then filter them out even further with a regex. # # 0.1.1 # Minor changes: # * PEP8 compliant. # * Moved to contrib… -# WARNING: this addon now needs a Blender patched with the ui_template_list diff, else it won’t -# be fully functional (even though working)… # # 0.1.2 # Minor changes: -# * Updated accordingly to the changes in enhanced ui_template_list proposal. -# WARNING: this addon now needs a Blender patched with the ui_template_list diff, else it won’t -# be fully functional (even though working)… +# * Updated accordingly to the changes in enhanced ui_template_list +# proposal. # # 0.1.3 # Minor changes: -# * Fixed a small bug that was disabling the whole UI when entering a filtering regex -# matching no scene. -# WARNING: this addon now needs a Blender patched with the ui_template_list diff, else it won’t -# be fully functional (even though working)… +# * Fixed a small bug that was disabling the whole UI when entering a +# filtering regex matching no scene. # # ##### END OF CHANGELOG ##### @@ -67,10 +60,12 @@ bl_info = { "blender": (2, 6, 1), "api": 42648, "location": "Render buttons (Properties window)", - "description": "Allows to copy a selection of render settings from current scene to others.", - "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\ + "description": "Allows to copy a selection of render settings from " \ + "current scene to others.", + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/" \ "Scripts/Render/Copy Settings", - "tracker_url": "http://projects.blender.org/tracker/index.php?func=detail&aid=25832", + "tracker_url": "http://projects.blender.org/tracker/index.php?" \ + "func=detail&aid=25832", "category": "Render"} @@ -84,28 +79,32 @@ else: import bpy -from bpy.props import StringProperty, BoolProperty, IntProperty, CollectionProperty +from bpy.props import StringProperty, BoolProperty, \ + IntProperty, CollectionProperty -#################################################################################################### -# Global properties for the script, for UI (as there’s no way to let them in the operator…). -#################################################################################################### +############################################################################### +# Global properties for the script, for UI (as there’s no way to let them in +# the operator…). +############################################################################### class RenderCopySettingsScene(bpy.types.PropertyGroup): allowed = BoolProperty(default=True) - # A string of identifiers (colon delimited) which property’s controls should be displayed - # in a template_list. - template_list_controls = StringProperty(default="allowed", options={"HIDDEN"}) + # A string of identifiers (colon delimited) which property’s controls + # should be displayed in a template_list. + template_list_controls = StringProperty(default="allowed", + options={"HIDDEN"}) class RenderCopySettingsSetting(bpy.types.PropertyGroup): strid = StringProperty(default="") copy = BoolProperty(default=False) - # A string of identifiers (colon delimited) which property’s controls should be displayed - # in a template_list. - template_list_controls = StringProperty(default="copy", options={"HIDDEN"}) + # A string of identifiers (colon delimited) which property’s controls + # should be displayed in a template_list. + template_list_controls = StringProperty(default="copy", + options={"HIDDEN"}) class RenderCopySettings(bpy.types.PropertyGroup): @@ -113,7 +112,9 @@ class RenderCopySettings(bpy.types.PropertyGroup): # It should only contain one element for each render setting. affected_settings = CollectionProperty(type=RenderCopySettingsSetting, name="Affected Settings", - description="The list of all available render settings") + description="The list of all " \ + "available render " \ + "settings") # XXX Unused, but needed for template_list… aff_sett_idx = IntProperty() @@ -121,12 +122,14 @@ class RenderCopySettings(bpy.types.PropertyGroup): # It should only contain one element for each scene. allowed_scenes = CollectionProperty(type=RenderCopySettingsScene, name="Allowed Scenes", - description="The list all scenes in the file") + description="The list all scenes " \ + "in the file") # XXX Unused, but needed for template_list… allw_scenes_idx = IntProperty() filter_scene = StringProperty(name="Filter Scene", - description="Regex to only affect scenes which name matches it", + description="Regex to only affect scenes " \ + "which name matches it", default="") |