Page MenuHome

Bones location (0,0,0) of skeleton_c3d from C3D Imports C3D Graphics Lab Motion Capture files
Open, Needs Triage by DeveloperPublic

Description

System Information
Operating System: Ubuntu 18.04.2 LTS
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2

Blender Version
Blender: 2.79b
Category: Import Export
Python: 3.7
Script name: C3D Graphics Lab Motion Capture file (.c3d) (version 2015,5,5,1)
Author(s): Daniel Monteiro Basso

Short description of error
Hi,
I would like to write a Python script which goes apply data from file c3d to an armature into bvh.
I have imported my file skeleton.c3d.
It works. But i would like to access locations of my objects.
Via a Linux terminal, for every bones of the skeleton_import_c3d, their locations are (0,0,0) and the animation_data is none. ??

bpy_struct, Object(“skeleton.c3d”) 00 Vector (0.0000, 0.0000, 0.0000)

bpy_struct, Object(“skeleton.c3d”) 01 Vector (0.0000, 0.0000, 0.0000)

bpy_struct, Object(“skeleton.c3d”) 02 Vector (0.0000, 0.0000, 0.0000)

bpy_struct, Object(“skeleton.c3d”) 03 Vector (0.0000, 0.0000, 0.0000)

…

skeleton_c3d_import.animation_data: None

Can you explain me how to get the animation_data from my file skeleton.c3d please ??

Exact steps for others to reproduce the error
Here my script:

import bpy

bpy.ops.import_anim.c3d(filepath=myfilepath)

skeleton_c3d_import = bpy.context.scene.objects.active

for obj in bpy.context.scene.objects:
     print("obj: ",obj)

for bone in skeleton_c3d_import.pose.bones:
    print(bpy.context.scene.objects.active, bone.name, bone.location)

print("skeleton_c3d_import.animation_data: ",skeleton_c3d_import.animation_data)

Details

Type
Bug

Event Timeline

NaomiL (NaoL) renamed this task from Location (0,0,0) of skeleton_c3d from C3D Imports C3D Graphics Lab Motion Capture files to Bones location (0,0,0) of skeleton_c3d from C3D Imports C3D Graphics Lab Motion Capture files .May 16 2019, 10:19 AM