Child pages
  • Measure CT Marker Coordinates in Maya

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Import bone and marker models
  2. Organize models
    • open Window<Hypergraph Hierarchy. Go to view<frame all. 
    • If using .wrl based models, maya imports 3 nodes, root-t1-t1shape2XX3.  You only need the bottom node of each model (t1Shape2XX3#). Middle mouse click and hold the bottom node and drag it to an empty space in the window. Now select the root and t1 nodes and hit the delete key. Select the t1Shape node again, right click and rename with the appropriate bone name.
    • If using .obj files maya imports a single mesh node. Rename it if you wish.
    • repeat for all models
    • You should now have a single node for each bone model and single node for the marker model (all of the markers)
  3. Get get marker coordinates from the marker models
    • In the main camera view window, select all bone models (but not the markers). Hit ctrl+h on the keypad keyboard to hide all of the bones. Only the markers are showing.
    • Select the marker object
    • right click and select vertex from the marking menu
    • drag select the vertices for a single marker
    • click vAvg on the shelf bar or type vertAvg on the command line. You will get a window that looks like:
    • Type in the number of markers you have and press enter. In the above example, we had 10 markers.
    • Select the marker number from the list that corresponds to the vertices you selected and hit the "calculate centroid" button.
    • A locator is created with the xyz coordinates of the marker centroid. It will be name "marker##" where ## is the number you typed.
    • repeat for all markers
    • (hint: if you need to see the bones to determine marker numbers ctrl+ Shift+h will unhide the bones)
  4. Export the CT marker locator data
    • This step can be done in the vAvg window. Once you have selected all of the markers and created locators for them, the "export centroids" button will become black. Press this button and save the file it produces. If you closed the vAvg window, you can also export the marker locations by doing the following.
    • select all of the locators that you just created.
    • click the CTex from the XROMMtools Shelf, or type CTMexport in the MEL box
    • Save the .csv file
  5. Save the scene. You will reference this for all animations involving this individual animal

...