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>2011-11-03 05:40:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-03 05:40:01 +0400
commitf3d111886556aa4a1dde37152e3aeea86dff244e (patch)
tree6daf8be9c63c79faaa7980073d5cda6a628d296b /io_anim_c3d
parent6afd515ecee367d05c96c6dbc31fb894e14b3c0b (diff)
rename c3d submodule incase we get exporter support + minor edits.
Diffstat (limited to 'io_anim_c3d')
-rw-r--r--io_anim_c3d/__init__.py23
-rw-r--r--io_anim_c3d/import_c3d.py (renamed from io_anim_c3d/c3d.py)0
2 files changed, 14 insertions, 9 deletions
diff --git a/io_anim_c3d/__init__.py b/io_anim_c3d/__init__.py
index 1a460ea4..d4453f95 100644
--- a/io_anim_c3d/__init__.py
+++ b/io_anim_c3d/__init__.py
@@ -30,19 +30,24 @@ bl_info = {
'api': 41226,
'location': "File > Import",
'description': "Imports C3D Graphics Lab Motion Capture files",
- 'wiki_url': "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
- "Scripts/Import-Export/C3D_Importer",
- 'tracker_url': "http://projects.blender.org/tracker/?func=detail&atid=467"\
- "&aid=29061&group_id=153",
+ 'wiki_url': ("http://wiki.blender.org/index.php/Extensions:2.5/Py/"
+ "Scripts/Import-Export/C3D_Importer"),
+ 'tracker_url': ("http://projects.blender.org/tracker/?func=detail&atid=467"
+ "&aid=29061&group_id=153"),
'category': 'Import-Export'}
import bpy
+from bpy.props import (StringProperty,
+ BoolProperty,
+ FloatProperty,
+ IntProperty,
+ )
+
import math
import time
-from bpy.props import StringProperty, BoolProperty, FloatProperty, IntProperty
-from mathutils import Vector as vec
-from . import c3d
+from mathutils import Vector
+from . import import_c3d
class C3DAnimateCloud(bpy.types.Operator):
@@ -74,7 +79,7 @@ class C3DAnimateCloud(bpy.types.Operator):
name = self.unames[self.prefix + ml]
o = bpy.context.scene.objects[name]
m = self.markerset.getMarker(ml, self.curframe)
- o.location = vec(m.position) * self.scale
+ o.location = Vector(m.position) * self.scale
if m.confidence >= self.confidence:
o.keyframe_insert('location', frame=fno)
self.curframe += self.fskip
@@ -173,7 +178,7 @@ class C3DImporter(bpy.types.Operator):
def execute(self, context):
s = self.properties.size
empty_size = (s, s, s)
- ms = c3d.read(self.properties.filepath, onlyHeader=True)
+ ms = import_c3d.read(self.properties.filepath, onlyHeader=True)
ms.readNextFrameData()
#print(ms.fileName)
diff --git a/io_anim_c3d/c3d.py b/io_anim_c3d/import_c3d.py
index 7df6bcf8..7df6bcf8 100644
--- a/io_anim_c3d/c3d.py
+++ b/io_anim_c3d/import_c3d.py