📙
XROMM
  • Table of Contents
  • Introduction to XROMM
  • Model Generation
    • Model Generation: Creating 3D models using Amira software
    • Model Generation : Creating 3D models with Horos
    • Model Generation : Creating 3D models with 3D Slicer
    • Model Generation : 3D Marker Models with Horos
    • Model Generation : Cleaning up 3D models with Geomagic
    • Model Generation : Cleaning 3D models with MeshLab
    • Model Generation : Measure CT Marker Coordinates in Maya
  • Animate Bones and Markers
    • Animate Bones and Markers : Importing mesh models into Maya from Horos
    • Animate Bones and Markers : Animate Bones in Maya
    • Animate Bones and Markers : Check Your Animation with MayaCams
  • Maya Analysis and Visualization
    • Maya Analysis and Visualization : Working with joint coordinate systems (JCS)
    • Maya Analysis and Visualization : Measuring and exporting the distance between two points
    • Maya Analysis and Visualization : Measuring XYZ Coordinates of a Point Over Time
    • Maya Analysis and Visualization : Parent a camera to a reference bone
    • Maya Analysis and Visualization : Relative Motion
  • Scientific Rotoscoping
    • Scientific Rotoscoping : Recreate X-Ray cameras in Maya
    • Scientific Rotoscoping : Scientific Rotoscoping in Maya
      • Scientific Rotoscoping : Pan and Scan tools for Rotoscoping
    • Scientific Rotoscoping : Animating a Bone with One or Two Markers
  • Tips and Tools
    • Tips and Tools : Open Maya files from a newer version with older versions
    • Tips and Tools : Precision testing using frozen cadavers
    • Tips and Tools : Import XYZ points into Maya
  • XMAPortal User Manual
    • XMAPortal : Getting Started with XMAPortal
    • XMAPortal : How to Create a New Study
    • XROMM : How to Modify Study Metadata
    • XROMM : How to give access or revoke access to see your study
    • XMAPortal : Data Organization
    • XMAPortal : Metadata Pool
    • XMAPortal : How to Create Trials
    • XMAPortal : How to edit an existing trial
    • XMAPortal : How to upload files
      • XMAPortal : Clearing your browser history
      • XMAPortal : Changing how Java applet connects to the network
      • XMAPortal : Show Firefox developer window
    • XMAPortal : Hide Files
Powered by GitBook
On this page
  • Start by selecting a frame of the animation to be the zero point for the bone positions.
  • Creating a joint axis system
  • Aligning the JCS
  • Setting the axes and viewing 6 DOF graphical data
  • Exporting Data from Maya
  • To Reuse an Anatomical Axis System

Was this helpful?

  1. Maya Analysis and Visualization

Maya Analysis and Visualization : Working with joint coordinate systems (JCS)

PreviousMaya Analysis and VisualizationNextMaya Analysis and Visualization : Measuring and exporting the distance between two points

Last updated 5 years ago

Was this helpful?

Start by selecting a frame of the animation to be the zero point for the bone positions.

Creating a joint axis system

  1. Click jAx on the XROMM shelf or type jointAxes in the MEL box. The following window will open:

  2. in your Maya scene or Hypergraph Hierarchy, select the "proximal object" (the reference bone). The name of the bone will appear in the box. Click Insert Selection button.

  3. select the "distal object" The name of the bone will appear in the dialog box. Click Insert Selection button.

  4. Name your axis system. Click Create Axes. If this button does not become available when you type in a joint name, hit enter. Select create Axes without Locators (create axes with locators is more specialized). A set of orthogonal axes will appear in the main Maya window and an object with yourjointname will appear on the hypergraph.

Aligning the JCS

  1. Use Maya object rotation and translation tools to align axes to the expected movement. The z-axis (blue) should be set as the axis with the largest expected rotation, and the y-axis (green) as the second largest expected rotation.

  2. The right-hand rule determines the polarity of rotations. Aim thumb along axis arrow direction; fingers curl in positive rotation direction.

  3. The z-axis (blue) may have default positiveZ and negativeZ locators and aim and point constraints. The locators can be used to intersect the Z-axis with specific anatomical landmarks. If you do not want to use the locators, then they should be deleted. Go to hypergraph and select and delete the positiveZ and negativeZ locators. The point constraint and aim constraint objects should automatically be deleted as well.

Setting the axes and viewing 6 DOF graphical data

  1. click SetJointAxes button on the AnatomicalJointAxes window

  2. a new object will appear on the far right of the hypergraph named (yourjointname)data

  3. if the graphing window does not appear automatically, go to Window/Animation Editor/Graph Editor

Exporting Data from Maya

  1. Select the Data type, coordinate system, and whether or not the selected object has animated data.

  2. Select header options for your file. Note: if you choose to remove frame spacing with NANs, row headers will automatically be selected to help keep track of what frames you have exported.

  3. Unless you wish to only export keyframes, keep spline interpolate selected.

  4. Export all keys, keys on the timeslider, or a selected range of data.

  5. Click export and save data in appropriate location.

To Reuse an Anatomical Axis System

(Note: an easier solution to this problem is to concatenate all xyz points from each individual into one file and then calculate rigid bodies. The resulting animation will have all of your trials in it. Set the JCS once and output data for all trials in the same coordinate system).

In order to reduce variation in anatomical axis placement on the same individual, it is useful to use the same anatomical axis system for all trials (sequences) from the same individual. After you have created an animation with the anatomical axis system you want, Save it and then use Save As to create a copy of the scene, call it something like "axes_Setup_scene" and do the following:

  1. Select one of the animated bones. In the channel box, highlight (select) all six animation parameter names from "TranslateX" to "RotateZ". Right click and select "Break connections". This deletes the key frames for that bone.

  2. Next, highlight the numbers next to TranslateX through RotateZ and set them to zero. This moves the bone back to the CT (bone scan) coordinates where it started.

  3. Do the same for all of the the other animated bones.

  4. Delete the old Joint_data from the previous anatomical axis animation (the animated node in the hierarchy with the name of the joint). Do not delete the axes on the bones or the locators.

  5. Save this Setup Scene and then Save As the name of the next sequence that you want to animate and measure.

  6. Import your new animation data, as usual.

  7. Click the "jAx" button on the XROMM tool shelf (or type jointAxes in the MEL command box). Put in the same proximal and distal bones that you used before. Use exactly the same Axes Name for the joint as you did before (important). Do not click the "Create Axes" button (because the axes with Axes_name already exist).

  8. You should be able to click the "Set Joint Axes" button now. This will recalculate the rotations and translations for the new animation in the old anatomical axis system. Save this scene.

Select the object(s) you wish to export data from (for JCS: yourJointName_data node in Hypergraph hierarchy), and press the “exp” button on the XROMM tool shelf or type expdata into the Mel command line. This window should pop up: