Bones location (0,0,0) of skeleton_c3d from C3D Imports C3D Graphics Lab Motion Capture files #64692

Closed
opened 2019-05-16 10:16:41 +02:00 by NaomiL · 6 comments

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 aLinux 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)
**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)
Author

Added subscriber: @NaoL

Added subscriber: @NaoL
NaomiL changed title 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 2019-05-16 10:19:04 +02:00
Author

Removed subscriber: @NaoL

Removed subscriber: @NaoL
Author

Added subscriber: @NaoL

Added subscriber: @NaoL
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brendon Murphy self-assigned this 2019-08-20 08:46:03 +02:00
Member

hi, the c3d mocap addon is currently invalid. unfortunately it has not been updated for 2.8. I'm archiving this task in the hope someone takes it on at a future date. I doubt any potential fixes would be back ported to 2.79

hi, the c3d mocap addon is currently invalid. unfortunately it has not been updated for 2.8. I'm archiving this task in the hope someone takes it on at a future date. I doubt any potential fixes would be back ported to 2.79
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#64692
No description provided.