[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2601] trunk/py/scripts/addons: minor formatting edits

Campbell Barton ideasman42 at gmail.com
Fri Nov 11 04:16:06 CET 2011


Revision: 2601
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2601
Author:   campbellbarton
Date:     2011-11-11 03:16:01 +0000 (Fri, 11 Nov 2011)
Log Message:
-----------
minor formatting edits

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_fbx/export_fbx.py
    trunk/py/scripts/addons/mocap/__init__.py
    trunk/py/scripts/addons/system_demo_mode/__init__.py
    trunk/py/scripts/addons/system_demo_mode/demo_mode.py

Modified: trunk/py/scripts/addons/io_scene_fbx/export_fbx.py
===================================================================
--- trunk/py/scripts/addons/io_scene_fbx/export_fbx.py	2011-11-10 13:46:20 UTC (rev 2600)
+++ trunk/py/scripts/addons/io_scene_fbx/export_fbx.py	2011-11-11 03:16:01 UTC (rev 2601)
@@ -1866,7 +1866,7 @@
                     i = 0
                 fw(',%.6f,%.6f,%.6f' % v.co[:])
             i += 1
-        
+
         fw('\n\t}')
 
     def write_group(name):

Modified: trunk/py/scripts/addons/mocap/__init__.py
===================================================================
--- trunk/py/scripts/addons/mocap/__init__.py	2011-11-10 13:46:20 UTC (rev 2600)
+++ trunk/py/scripts/addons/mocap/__init__.py	2011-11-11 03:16:01 UTC (rev 2601)
@@ -249,6 +249,7 @@
 updateIKRetarget()
 '''
 
+
 def hasIKConstraint(pose_bone):
     #utility function / predicate, returns True if given bone has IK constraint
     ik = [constraint for constraint in pose_bone.constraints if constraint.type == "IK"]

Modified: trunk/py/scripts/addons/system_demo_mode/__init__.py
===================================================================
--- trunk/py/scripts/addons/system_demo_mode/__init__.py	2011-11-10 13:46:20 UTC (rev 2600)
+++ trunk/py/scripts/addons/system_demo_mode/__init__.py	2011-11-11 03:16:01 UTC (rev 2601)
@@ -26,8 +26,8 @@
     "location": "Demo Menu",
     "description": "Demo mode lets you select multiple blend files and loop over them.",
     "warning": "",
-    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
-        "Scripts/System/Demo_Mode#Running_Demo_Mode",
+    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"
+                "Scripts/System/Demo_Mode#Running_Demo_Mode",
     "tracker_url": "",
     "support": 'OFFICIAL',
     "category": "System"}
@@ -40,7 +40,11 @@
 
 
 import bpy
-from bpy.props import StringProperty, BoolProperty, IntProperty, FloatProperty, EnumProperty
+from bpy.props import (StringProperty,
+                       BoolProperty,
+                       IntProperty,
+                       FloatProperty,
+                       EnumProperty)
 
 
 class DemoModeSetup(bpy.types.Operator):
@@ -53,30 +57,80 @@
     # to the class instance from the operator settings before calling.
 
     # these are used to create the file list.
-    filepath = StringProperty(name="File Path", description="Filepath used for importing the file", maxlen=1024, default="", subtype='FILE_PATH')
-    random_order = BoolProperty(name="Random Order", description="Select files randomly", default=False)
-    mode = EnumProperty(items=(
-            ('AUTO', "Auto", ""),
-            ('PLAY', "Play", ""),
-            ('RENDER', "Render", ""),
-            ),
-                name="Method")
+    filepath = StringProperty(
+            name="File Path",
+            description="Filepath used for importing the file",
+            maxlen=1024,
+            subtype='FILE_PATH',
+            )
+    random_order = BoolProperty(
+            name="Random Order",
+            description="Select files randomly",
+            default=False,
+            )
+    mode = EnumProperty(
+            name="Method",
+            items=(('AUTO', "Auto", ""),
+                   ('PLAY', "Play", ""),
+                   ('RENDER', "Render", ""),
+                   ),
+            )
 
-    run = BoolProperty(name="Run Immediately!", description="Run demo immediately", default=True)
+    run = BoolProperty(
+            name="Run Immediately!",
+            description="Run demo immediately",
+            default=True,
+            )
 
     # these are mapped directly to the config!
     #
     # anim
     # ====
-    anim_cycles = IntProperty(name="Cycles", description="Number of times to play the animation", min=1, max=1000, default=2)
-    anim_time_min = FloatProperty(name="Time Min", description="Minimum number of seconds to show the animation for (for small loops)", min=0.0, max=1000.0, soft_min=1.0, soft_max=1000.0, default=4.0)
-    anim_time_max = FloatProperty(name="Time Max", description="Maximum number of seconds to show the animation for (in case the end frame is very high for no reason)", min=0.0, max=100000000.0, soft_min=1.0, soft_max=100000000.0, default=8.0)
-    anim_screen_switch = FloatProperty(name="Screen Switch", description="Time between switching screens (in seconds) or 0 to disable", min=0.0, max=100000000.0, soft_min=1.0, soft_max=60.0, default=0.0)
+    anim_cycles = IntProperty(
+            name="Cycles",
+            description="Number of times to play the animation",
+            min=1, max=1000,
+            default=2,
+            )
+    anim_time_min = FloatProperty(
+            name="Time Min",
+            description="Minimum number of seconds to show the animation for "
+                        "(for small loops)",
+            min=0.0, max=1000.0,
+            soft_min=1.0, soft_max=1000.0,
+            default=4.0,
+            )
+    anim_time_max = FloatProperty(
+            name="Time Max",
+            description="Maximum number of seconds to show the animation for "
+                        "(in case the end frame is very high for no reason)",
+            min=0.0, max=100000000.0,
+            soft_min=1.0, soft_max=100000000.0,
+            default=8.0,
+            )
+    anim_screen_switch = FloatProperty(
+            name="Screen Switch",
+            description="Time between switching screens (in seconds) "
+                        "or 0 to disable",
+            min=0.0, max=100000000.0,
+            soft_min=1.0, soft_max=60.0,
+            default=0.0,
+            )
     #
     # render
     # ======
-    display_render = FloatProperty(name="Render Delay", description="Time to display the rendered image before moving on (in seconds)", min=0.0, max=60.0, default=4.0)
-    anim_render = BoolProperty(name="Render Anim", description="Render entire animation (render mode only)", default=False)
+    display_render = FloatProperty(
+            name="Render Delay",
+            description="Time to display the rendered image before moving on "
+                        "(in seconds)",
+            min=0.0, max=60.0,
+            default=4.0,
+            )
+    anim_render = BoolProperty(
+            name="Render Anim",
+            description="Render entire animation (render mode only)",
+            default=False,
+            )
 
     def execute(self, context):
         from . import config

Modified: trunk/py/scripts/addons/system_demo_mode/demo_mode.py
===================================================================
--- trunk/py/scripts/addons/system_demo_mode/demo_mode.py	2011-11-10 13:46:20 UTC (rev 2600)
+++ trunk/py/scripts/addons/system_demo_mode/demo_mode.py	2011-11-11 03:16:01 UTC (rev 2601)
@@ -166,7 +166,7 @@
         handle, global_state["render_out"] = tempfile.mkstemp()
         os.close(handle)
         del handle
-        
+
         if os.path.exists(global_state["render_out"]):
             print("  render!!!")
             os.remove(global_state["render_out"])



More information about the Bf-extensions-cvs mailing list