[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2765] trunk/py/scripts/addons: make sure all filepath props have FILE_PATH subtype

Campbell Barton ideasman42 at gmail.com
Sun Dec 11 22:25:05 CET 2011


Revision: 2765
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2765
Author:   campbellbarton
Date:     2011-12-11 21:25:04 +0000 (Sun, 11 Dec 2011)
Log Message:
-----------
make sure all filepath props have FILE_PATH subtype

Modified Paths:
--------------
    trunk/py/scripts/addons/game_engine_save_as_runtime.py
    trunk/py/scripts/addons/io_anim_acclaim/__init__.py
    trunk/py/scripts/addons/io_anim_c3d/__init__.py
    trunk/py/scripts/addons/io_export_unreal_psk_psa.py
    trunk/py/scripts/addons/io_import_scene_dxf.py
    trunk/py/scripts/addons/io_import_scene_mhx.py
    trunk/py/scripts/addons/io_import_scene_unreal_psk.py
    trunk/py/scripts/addons/io_mesh_raw/__init__.py
    trunk/py/scripts/addons/io_mesh_uv_layout/__init__.py
    trunk/py/scripts/addons/io_scene_m3/import_m3.py

Modified: trunk/py/scripts/addons/game_engine_save_as_runtime.py
===================================================================
--- trunk/py/scripts/addons/game_engine_save_as_runtime.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/game_engine_save_as_runtime.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -194,8 +194,6 @@
             subtype='FILE_PATH',
             )
     filepath = StringProperty(
-            name="Output Path",
-            description="Where to save the runtime",
             subtype='FILE_PATH',
             )
     copy_python = BoolProperty(

Modified: trunk/py/scripts/addons/io_anim_acclaim/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_anim_acclaim/__init__.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_anim_acclaim/__init__.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -312,9 +312,7 @@
     bl_label = "Import ASF"
 
     filepath = StringProperty(
-            name="File Path",
-            maxlen=1024, default="",
-            description="Path to the ASF file",
+            subtype='FILE_PATH',
             )
     armature_name = StringProperty(
             name="Armature Name", maxlen=32,
@@ -408,8 +406,7 @@
     bl_label = "Import AMC"
 
     filepath = StringProperty(
-            name="File Path", maxlen=1024,
-            description="Path to the AMC file",
+            subtype='FILE_PATH',
             )
     frame_skip = IntProperty(
             name="Fps divisor",

Modified: trunk/py/scripts/addons/io_anim_c3d/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_anim_c3d/__init__.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_anim_c3d/__init__.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -105,9 +105,7 @@
     bl_label = "Import C3D"
 
     filepath = StringProperty(
-            name="File Path",
-            maxlen=1024,
-            description="Path to the C3D file",
+            subtype='FILE_PATH',
             )
     from_inches = BoolProperty(
             name="Convert from inches to metric",

Modified: trunk/py/scripts/addons/io_export_unreal_psk_psa.py
===================================================================
--- trunk/py/scripts/addons/io_export_unreal_psk_psa.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_export_unreal_psk_psa.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -1938,9 +1938,6 @@
     # to the class instance from the operator settings before calling.
 
     filepath = StringProperty(
-            name="File Path",
-            description="Filepath used for exporting the PSA file",
-            maxlen= 1024,
             subtype='FILE_PATH',
             )
     filter_glob = StringProperty(

Modified: trunk/py/scripts/addons/io_import_scene_dxf.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_dxf.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_import_scene_dxf.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -2427,9 +2427,6 @@
     bl_options = {'UNDO'}
 
     filepath = StringProperty(
-            name="File Path",
-            description="Filepath used for importing the DXF file",
-            maxlen=1024,
             subtype='FILE_PATH',
             )
     new_scene = BoolProperty(

Modified: trunk/py/scripts/addons/io_import_scene_mhx.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_mhx.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -2868,7 +2868,7 @@
     scale = FloatProperty(name="Scale", description="Default meter, decimeter = 1.0", default = theScale)
     filename_ext = ".mhx"
     filter_glob = StringProperty(default="*.mhx", options={'HIDDEN'})
-    filepath = StringProperty(name="File Path", description="File path used for importing the MHX file", maxlen= 1024, default= "")
+    filepath = StringProperty(subtype='FILE_PATH')
 
     for (prop, name, desc, flag) in MhxBoolProps:
         expr = '%s = BoolProperty(name="%s", description="%s", default=toggle&%s)' % (prop, name, desc, flag)
@@ -3262,7 +3262,7 @@
 class VIEW3D_OT_MhxLoadMohoButton(bpy.types.Operator):
     bl_idname = "mhx.pose_load_moho"
     bl_label = "Moho (.dat)"
-    filepath = StringProperty(name="File Path", description="File path used for importing the file", maxlen= 1024, default= "")
+    filepath = StringProperty(subtype='FILE_PATH')
     startFrame = IntProperty(name="Start frame", description="First frame to import", default=1)
 
     def execute(self, context):
@@ -3281,7 +3281,7 @@
 class VIEW3D_OT_MhxLoadMagpieButton(bpy.types.Operator):
     bl_idname = "mhx.pose_load_magpie"
     bl_label = "Magpie (.mag)"
-    filepath = StringProperty(name="File Path", description="File path used for importing the file", maxlen= 1024, default= "")
+    filepath = StringProperty(subtype='FILE_PATH')
     startFrame = IntProperty(name="Start frame", description="First frame to import", default=1)
 
     def execute(self, context):

Modified: trunk/py/scripts/addons/io_import_scene_unreal_psk.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_unreal_psk.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_import_scene_unreal_psk.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -749,9 +749,6 @@
     # List of operator properties, the attributes will be assigned
     # to the class instance from the operator settings before calling.
     filepath = StringProperty(
-            name="File Path",
-            description="Filepath used for importing the psk file",
-            maxlen= 1024,
             subtype='FILE_PATH',
             )
     filter_glob = StringProperty(

Modified: trunk/py/scripts/addons/io_mesh_raw/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/__init__.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_mesh_raw/__init__.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -52,7 +52,9 @@
     bl_label = "Import RAW"
     bl_options = {'UNDO'}
 
-    filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="", subtype='FILE_PATH')
+    filepath = StringProperty(
+            subtype='FILE_PATH',
+            )
     filter_glob = StringProperty(default="*.raw", options={'HIDDEN'})
 
     def execute(self, context):
@@ -72,9 +74,6 @@
     bl_label = "Export RAW"
 
     filepath = StringProperty(
-            name="File Path",
-            description="Filepath used for exporting the RAW file",
-            maxlen=1024,
             subtype='FILE_PATH',
             )
     check_existing = BoolProperty(

Modified: trunk/py/scripts/addons/io_mesh_uv_layout/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_uv_layout/__init__.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_mesh_uv_layout/__init__.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -63,10 +63,6 @@
     bl_options = {'REGISTER', 'UNDO'}
 
     filepath = StringProperty(
-            name="File Path",
-            description="File path used for exporting the SVG file",
-            maxlen=1024,
-            default="",
             subtype='FILE_PATH',
             )
     check_existing = BoolProperty(

Modified: trunk/py/scripts/addons/io_scene_m3/import_m3.py
===================================================================
--- trunk/py/scripts/addons/io_scene_m3/import_m3.py	2011-12-11 16:26:36 UTC (rev 2764)
+++ trunk/py/scripts/addons/io_scene_m3/import_m3.py	2011-12-11 21:25:04 UTC (rev 2765)
@@ -347,10 +347,8 @@
     # to the class instance from the operator settings before calling.
 
     filepath = StringProperty(
-                name="File Path",\
-                description="Filepath used for importing the M3 file",\
-                maxlen=1024,\
-                default="")
+                subtype='FILE_PATH',
+                )
 
     def execute(self, context):
         t = time.mktime(datetime.datetime.now().timetuple())



More information about the Bf-extensions-cvs mailing list