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>2010-06-14 07:53:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-14 07:53:45 +0400
commit2246e5b59719500a8d15cdd17fa81c7c104ec28a (patch)
treee1a80d84900bbc7db7d46564e8fa870a1fd41c79 /io_anim_camera.py
parent248b8c9a94710a4cf9d378c835a474ed57f7da82 (diff)
update for changes in trunk
Diffstat (limited to 'io_anim_camera.py')
-rw-r--r--io_anim_camera.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/io_anim_camera.py b/io_anim_camera.py
index 3656852e..07eeeb97 100644
--- a/io_anim_camera.py
+++ b/io_anim_camera.py
@@ -33,12 +33,12 @@ bl_addon_info = {
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 @@ class CameraExporter(bpy.types.Operator):
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 @@ class CameraExporter(bpy.types.Operator):
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 @@ class CameraExporter(bpy.types.Operator):
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():