[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [752] trunk/py/scripts/addons: remove filename and directory from ops that dont need them
Campbell Barton
ideasman42 at gmail.com
Sun Jun 27 00:33:13 CEST 2010
Revision: 752
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=752
Author: campbellbarton
Date: 2010-06-27 00:33:13 +0200 (Sun, 27 Jun 2010)
Log Message:
-----------
remove filename and directory from ops that dont need them
Modified Paths:
--------------
trunk/py/scripts/addons/export_unreal_psk_psa.py
trunk/py/scripts/addons/io_anim_camera.py
trunk/py/scripts/addons/io_mesh_raw/export_raw.py
trunk/py/scripts/addons/io_mesh_raw/import_raw.py
trunk/py/scripts/addons/io_mesh_stl/__init__.py
Modified: trunk/py/scripts/addons/export_unreal_psk_psa.py
===================================================================
--- trunk/py/scripts/addons/export_unreal_psk_psa.py 2010-06-23 12:37:52 UTC (rev 751)
+++ trunk/py/scripts/addons/export_unreal_psk_psa.py 2010-06-26 22:33:13 UTC (rev 752)
@@ -1468,8 +1468,6 @@
filepath = StringProperty(name="File Path", description="Filepath used for exporting the PSA file", maxlen= 1024, default= "")
use_setting = BoolProperty(name="No Options Yet", description="No Options Yet", default= True)
- filename = StringProperty(name="filename", description="", maxlen= 1024, default= "")
- directory = StringProperty(name="directory", description="", maxlen= 1024, default= "")
pskexportbool = BoolProperty(name="Export PSK", description="Export Skeletal Mesh", default= True)
psaexportbool = BoolProperty(name="Export PSA", description="Export Action Set (Animation Data)", default= True)
actionexportall = BoolProperty(name="All Actions", description="This will export all the actions that matches the current armature.", default=False)
Modified: trunk/py/scripts/addons/io_anim_camera.py
===================================================================
--- trunk/py/scripts/addons/io_anim_camera.py 2010-06-23 12:37:52 UTC (rev 751)
+++ trunk/py/scripts/addons/io_anim_camera.py 2010-06-26 22:33:13 UTC (rev 752)
@@ -119,8 +119,6 @@
bl_label = "Export Camera & Markers"
filepath = StringProperty(name="File Path", description="File path used for importing the RAW file", maxlen=1024, default="")
- filename = StringProperty(name="File Name", description="Name of the file.")
- directory = StringProperty(name="Directory", description="Directory of the file.")
frame_start = IntProperty(name="Start Frame",
description="Start frame for export",
Modified: trunk/py/scripts/addons/io_mesh_raw/export_raw.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/export_raw.py 2010-06-23 12:37:52 UTC (rev 751)
+++ trunk/py/scripts/addons/io_mesh_raw/export_raw.py 2010-06-26 22:33:13 UTC (rev 752)
@@ -95,8 +95,6 @@
bl_label = "Export RAW"
filepath = StringProperty(name="File Path", description="Filepath used for exporting the RAW file", maxlen= 1024, default= "")
- filename = StringProperty(name="File Name", description="Name of the file.")
- directory = StringProperty(name="Directory", description="Directory of the file.")
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object", default=True)
Modified: trunk/py/scripts/addons/io_mesh_raw/import_raw.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/import_raw.py 2010-06-23 12:37:52 UTC (rev 751)
+++ trunk/py/scripts/addons/io_mesh_raw/import_raw.py 2010-06-26 22:33:13 UTC (rev 752)
@@ -120,8 +120,6 @@
bl_label = "Import RAW"
filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="")
- filename = StringProperty(name="File Name", description="Name of the file.")
- directory = StringProperty(name="Directory", description="Directory of the file.")
def execute(self, context):
Modified: trunk/py/scripts/addons/io_mesh_stl/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_stl/__init__.py 2010-06-23 12:37:52 UTC (rev 751)
+++ trunk/py/scripts/addons/io_mesh_stl/__init__.py 2010-06-26 22:33:13 UTC (rev 752)
@@ -62,13 +62,9 @@
"the STL file",
maxlen=1024,
default="")
- filename = StringProperty(name="File Name",
- description="Name of the file.")
- directory = StringProperty(name="Directory",
- description="Directory of the file.")
def execute(self, context):
- objName = bpy.utils.display_name(self.properties.filename)
+ objName = bpy.utils.display_name(self.properties.filepath.split("\\")[-1].split("/")[-1])
tris, pts = stl_utils.read_stl(self.properties.filepath)
blender_utils.create_and_link_mesh(objName, tris, pts)
@@ -94,10 +90,6 @@
"the active object to STL file",
maxlen=1024,
default="")
- filename = StringProperty(name="File Name",
- description="Name of the file.")
- directory = StringProperty(name="Directory",
- description="Directory of the file.")
check_existing = BoolProperty(name="Check Existing",
description="Check and warn on "
"overwriting existing files",
More information about the Bf-extensions-cvs
mailing list