[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [735] trunk/py/scripts/addons: update for changes in trunk
Campbell Barton
ideasman42 at gmail.com
Mon Jun 14 05:53:47 CEST 2010
Revision: 735
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=735
Author: campbellbarton
Date: 2010-06-14 05:53:45 +0200 (Mon, 14 Jun 2010)
Log Message:
-----------
update for changes in trunk
Modified Paths:
--------------
trunk/py/scripts/addons/export_unreal_psk_psa.py
trunk/py/scripts/addons/fracture/fracture_ops.py
trunk/py/scripts/addons/import_images_as_planes.py
trunk/py/scripts/addons/import_scene_dxf.py
trunk/py/scripts/addons/import_scene_mhx.py
trunk/py/scripts/addons/import_scene_unreal_psk.py
trunk/py/scripts/addons/io_anim_camera.py
trunk/py/scripts/addons/io_mesh_raw/__init__.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
trunk/py/scripts/addons/space_view3d_spacebar_menu.py
Modified: trunk/py/scripts/addons/export_unreal_psk_psa.py
===================================================================
--- trunk/py/scripts/addons/export_unreal_psk_psa.py 2010-06-13 11:39:21 UTC (rev 734)
+++ trunk/py/scripts/addons/export_unreal_psk_psa.py 2010-06-14 03:53:45 UTC (rev 735)
@@ -1466,7 +1466,7 @@
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
- path = StringProperty(name="File Path", description="File path used for exporting the PSA file", maxlen= 1024, default= "")
+ 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= "")
@@ -1489,7 +1489,7 @@
else:
bpy.context.scene.unrealexportpsa = False
- write_data(self.properties.path, context, self.properties.use_setting)
+ write_data(self.properties.filepath, context, self.properties.use_setting)
self.report({'WARNING', 'INFO'}, exportmessage)
return {'FINISHED'}
@@ -1503,7 +1503,7 @@
bpy.context.scene.unrealexportpsk = True
bpy.context.scene.unrealexportpsa = True
default_path = bpy.data.filepath.replace(".blend", ".psk")
- self.layout.operator ("export.udk_anim_data", text="Skeleton Mesh / Animation Data (.psk/.psa)").path = default_path
+ self.layout.operator("export.udk_anim_data", text="Skeleton Mesh / Animation Data (.psk/.psa)").filepath = default_path
class VIEW3D_PT_unrealtools_objectmode(bpy.types.Panel):
bl_space_type = "VIEW_3D"
@@ -1553,7 +1553,7 @@
__doc__ = "Select export setting for .psk/.psa or both."
def invoke(self, context, event):
- path = StringProperty(name="File Path", description="File path used for exporting the PSA file", maxlen= 1024, default= "")
+ filepath = StringProperty(name="File Path", description="Filepath used for exporting the PSA file", maxlen= 1024, default= "")
print("Init Export Script:")
if(int(bpy.context.scene.unrealexport_settings) == 0):
bpy.context.scene.unrealexportpsk = True
Modified: trunk/py/scripts/addons/fracture/fracture_ops.py
===================================================================
--- trunk/py/scripts/addons/fracture/fracture_ops.py 2010-06-13 11:39:21 UTC (rev 734)
+++ trunk/py/scripts/addons/fracture/fracture_ops.py 2010-06-14 03:53:45 UTC (rev 735)
@@ -445,7 +445,7 @@
#print('import_object: ' + opath)
bpy.ops.wm.link_append(
- path=opath,
+ filepath=opath,
filename=obname,
directory=dpath,
filemode=1,
Modified: trunk/py/scripts/addons/import_images_as_planes.py
===================================================================
--- trunk/py/scripts/addons/import_images_as_planes.py 2010-06-13 11:39:21 UTC (rev 734)
+++ trunk/py/scripts/addons/import_images_as_planes.py 2010-06-14 03:53:45 UTC (rev 735)
@@ -377,8 +377,8 @@
" with the appropiate aspect ratio."
bl_options = {'REGISTER', 'UNDO'}
- path = StringProperty(name="File Path",
- description="File path used for importing the file",
+ filepath = StringProperty(name="File Path",
+ description="Filepath used for importing the file",
maxlen=1024,
default="")
filename = StringProperty(name="File Name",
@@ -460,10 +460,10 @@
def execute(self, context):
# File Path
- path = self.properties.path
+ filepath = self.properties.filepath
filename = self.properties.filename
directory = self.properties.directory
- filePath = (path, filename, directory)
+ filePath = (filepath, filename, directory)
# General Options
fromDirectory = self.properties.fromDirectory
Modified: trunk/py/scripts/addons/import_scene_dxf.py
===================================================================
--- trunk/py/scripts/addons/import_scene_dxf.py 2010-06-13 11:39:21 UTC (rev 734)
+++ trunk/py/scripts/addons/import_scene_dxf.py 2010-06-14 03:53:45 UTC (rev 735)
@@ -2025,7 +2025,7 @@
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
- path = StringProperty(name="File Path", description="File path used for importing the DXF file", maxlen= 1024, default= "")
+ filepath = StringProperty(name="File Path", description="Filepath used for importing the DXF file", maxlen= 1024, default= "")
merge = BoolProperty(name="Remove doubles", description="Merge coincident vertices", default=toggle&T_Merge)
mergeLimit = FloatProperty(name="Merge limit", description="Merge limit", default = theMergeLimit*1e4)
@@ -2051,7 +2051,7 @@
theMergeLimit = self.properties.mergeLimit*1e-4
theCodec = self.properties.codec
- readAndBuildDxfFile(self.properties.path)
+ readAndBuildDxfFile(self.properties.filepath)
return {'FINISHED'}
def invoke(self, context, event):
Modified: trunk/py/scripts/addons/import_scene_mhx.py
===================================================================
--- trunk/py/scripts/addons/import_scene_mhx.py 2010-06-13 11:39:21 UTC (rev 734)
+++ trunk/py/scripts/addons/import_scene_mhx.py 2010-06-14 03:53:45 UTC (rev 735)
@@ -2097,7 +2097,7 @@
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
- path = StringProperty(name="File Path", description="File path used for importing the MHX file", maxlen= 1024, default= "")
+ filepath = StringProperty(name="File Path", description="Filepath used for importing the MHX file", maxlen= 1024, default= "")
#preset = BoolProperty(name="Use rig preset", description="Use rig preset (Classic/Gobo)?", default=True)
#presetRig = EnumProperty(name="Rig", description="Choose preset rig",
@@ -2128,7 +2128,7 @@
toggle = O_Mesh | O_Armature | O_Proxy | T_ArmIK | T_LegIK | O_Replace | O_Face | O_Shape | O_Symm | T_MHX
- readMhxFile(self.properties.path,
+ readMhxFile(self.properties.filepath,
(self.properties.footRig,
self.properties.fingerRig))
return {'FINISHED'}
Modified: trunk/py/scripts/addons/import_scene_unreal_psk.py
===================================================================
--- trunk/py/scripts/addons/import_scene_unreal_psk.py 2010-06-13 11:39:21 UTC (rev 734)
+++ trunk/py/scripts/addons/import_scene_unreal_psk.py 2010-06-14 03:53:45 UTC (rev 735)
@@ -570,10 +570,10 @@
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
- path = StringProperty(name="File Path", description="File path used for importing the OBJ file", maxlen= 1024, default= "")
+ filepath = StringProperty(name="File Path", description="Filepath used for importing the OBJ file", maxlen= 1024, default= "")
def execute(self, context):
- getInputFilename(self.properties.path)
+ getInputFilename(self.properties.filepath)
return {'FINISHED'}
def invoke(self, context, event):
Modified: trunk/py/scripts/addons/io_anim_camera.py
===================================================================
--- trunk/py/scripts/addons/io_anim_camera.py 2010-06-13 11:39:21 UTC (rev 734)
+++ trunk/py/scripts/addons/io_anim_camera.py 2010-06-14 03:53:45 UTC (rev 735)
@@ -33,12 +33,12 @@
import bpy
-def writeCameras(context, path, frame_start, frame_end, only_selected=False):
+def writeCameras(context, filepath, frame_start, frame_end, only_selected=False):
data_attrs = ['lens', 'shift_x', 'shift_y', 'dof_distance', 'clip_start', 'clip_end', 'draw_size']
obj_attrs = ['restrict_render']
- fw = open(path, 'w').write
+ fw = open(filepath, 'w').write
scene = bpy.context.scene
@@ -118,7 +118,7 @@
bl_idname = "export_animation.cameras"
bl_label = "Export Camera & Markers"
- path = StringProperty(name="File Path", description="File path used for importing the RAW file", maxlen=1024, default="")
+ 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.")
@@ -132,7 +132,7 @@
default=True)
def execute(self, context):
- writeCameras(context, self.properties.path, self.properties.frame_start, self.properties.frame_end, self.properties.only_selected)
+ writeCameras(context, self.properties.filepath, self.properties.frame_start, self.properties.frame_end, self.properties.only_selected)
return {'FINISHED'}
def invoke(self, context, event):
@@ -146,7 +146,7 @@
def menu_export(self, context):
default_path = bpy.data.filepath.replace(".blend", ".py")
- self.layout.operator(CameraExporter.bl_idname, text="Cameras & Markers (.py)").path = default_path
+ self.layout.operator(CameraExporter.bl_idname, text="Cameras & Markers (.py)").filepath = default_path
def register():
Modified: trunk/py/scripts/addons/io_mesh_raw/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/__init__.py 2010-06-13 11:39:21 UTC (rev 734)
+++ trunk/py/scripts/addons/io_mesh_raw/__init__.py 2010-06-14 03:53:45 UTC (rev 735)
@@ -34,13 +34,13 @@
def menu_import(self, context):
from io_mesh_raw import import_raw
- self.layout.operator(import_raw.RawImporter.bl_idname, text="Raw Faces (.raw)").path = "*.raw"
+ self.layout.operator(import_raw.RawImporter.bl_idname, text="Raw Faces (.raw)").filepath = "*.raw"
def menu_export(self, context):
from io_mesh_raw import export_raw
default_path = bpy.data.filepath.replace(".blend", ".raw")
- self.layout.operator(export_raw.RawExporter.bl_idname, text="Raw Faces (.raw)").path = default_path
+ self.layout.operator(export_raw.RawExporter.bl_idname, text="Raw Faces (.raw)").filepath = default_path
def register():
Modified: trunk/py/scripts/addons/io_mesh_raw/export_raw.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/export_raw.py 2010-06-13 11:39:21 UTC (rev 734)
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list