Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-02 07:18:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-02 07:18:48 +0400
commit7c272c80dd630713b828d586e0387b66af7bc7e0 (patch)
tree1b56d1e46e24cac4c2b96978943eb01826a31ac4 /io_shape_mdd
parentaf88ccbfee8149971096a8af7e9af191548de819 (diff)
pep8 style edits.
Diffstat (limited to 'io_shape_mdd')
-rw-r--r--io_shape_mdd/__init__.py60
1 files changed, 47 insertions, 13 deletions
diff --git a/io_shape_mdd/__init__.py b/io_shape_mdd/__init__.py
index bc195735..ff8d7308 100644
--- a/io_shape_mdd/__init__.py
+++ b/io_shape_mdd/__init__.py
@@ -26,13 +26,12 @@ bl_info = {
"location": "File > Import-Export",
"description": "Import-Export MDD as mesh shape keys",
"warning": "",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
- "Scripts/Import-Export/NewTek_OBJ",
+ "wiki_url": ("http://wiki.blender.org/index.php/Extensions:2.5/Py/"
+ "Scripts/Import-Export/NewTek_OBJ"),
"tracker_url": "",
"support": 'OFFICIAL',
"category": "Import-Export"}
-# To support reload properly, try to access a package var, if it's there, reload everything
if "bpy" in locals():
import imp
if "import_mdd" in locals():
@@ -52,10 +51,22 @@ class ImportMDD(bpy.types.Operator, ImportHelper):
bl_label = "Import MDD"
filename_ext = ".mdd"
- filter_glob = StringProperty(default="*.mdd", options={'HIDDEN'})
- frame_start = IntProperty(name="Start Frame", description="Start frame for inserting animation", min=-300000, max=300000, default=0)
- frame_step = IntProperty(name="Step", min=1, max=1000, default=1)
+ filter_glob = StringProperty(
+ default="*.mdd",
+ options={'HIDDEN'},
+ )
+ frame_start = IntProperty(
+ name="Start Frame",
+ description="Start frame for inserting animation",
+ min=-300000, max=300000,
+ default=0,
+ )
+ frame_step = IntProperty(
+ name="Step",
+ min=1, max=1000,
+ default=1,
+ )
@classmethod
def poll(cls, context):
@@ -69,8 +80,10 @@ class ImportMDD(bpy.types.Operator, ImportHelper):
if not self.frame_start:
self.frame_start = scene.frame_current
+ keywords = self.as_keywords(ignore=("filter_glob",))
+
from . import import_mdd
- return import_mdd.load(self, context, **self.as_keywords(ignore=("filter_glob",)))
+ return import_mdd.load(self, context, **keywords)
class ExportMDD(bpy.types.Operator, ExportHelper):
@@ -90,9 +103,24 @@ class ExportMDD(bpy.types.Operator, ExportHelper):
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
- fps = IntProperty(name="Frames Per Second", description="Number of frames/second", min=minfps, max=maxfps, default=25)
- frame_start = IntProperty(name="Start Frame", description="Start frame for baking", min=minframe, max=maxframe, default=1)
- frame_end = IntProperty(name="End Frame", description="End frame for baking", min=minframe, max=maxframe, default=250)
+ fps = IntProperty(
+ name="Frames Per Second",
+ description="Number of frames/second",
+ min=minfps, max=maxfps,
+ default=25,
+ )
+ frame_start = IntProperty(
+ name="Start Frame",
+ description="Start frame for baking",
+ min=minframe, max=maxframe,
+ default=1,
+ )
+ frame_end = IntProperty(
+ name="End Frame",
+ description="End frame for baking",
+ min=minframe, max=maxframe,
+ default=250,
+ )
@classmethod
def poll(cls, context):
@@ -109,16 +137,22 @@ class ExportMDD(bpy.types.Operator, ExportHelper):
if not self.fps:
self.fps = scene.render.fps
+ keywords = self.as_keywords(ignore=("check_existing", "filter_glob"))
+
from . import export_mdd
- return export_mdd.save(self, context, **self.as_keywords(ignore=("check_existing", "filter_glob")))
+ return export_mdd.save(self, context, **keywords)
def menu_func_import(self, context):
- self.layout.operator(ImportMDD.bl_idname, text="Lightwave Point Cache (.mdd)")
+ self.layout.operator(ImportMDD.bl_idname,
+ text="Lightwave Point Cache (.mdd)",
+ )
def menu_func_export(self, context):
- self.layout.operator(ExportMDD.bl_idname, text="Lightwave Point Cache (.mdd)")
+ self.layout.operator(ExportMDD.bl_idname,
+ text="Lightwave Point Cache (.mdd)",
+ )
def register():