Child pages
  • z_*OBSOLETE* Calculate Rigid Body Motion in Matlab

Versions Compared


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


  1. type rigidBodyMotionFromMarkers at the matlab prompt
  2. select *xyzpts.csv file
  3. select markercoords.csv file
  4. type the number of bones in the input box
  5. select the markers associated with each bone (omit any points with all NaNs)
  6. save the file output.

what you get:


A (yourfilename)BoneTforms.csv file with the translations and rotations to drive your bones (in a bizarre, Maya-friendly 16x1 matrix format)

  • To use this file in maya, you will
    • select the bones in the same order used above.
    • type impMatrix at the command prompt
    • select the file saved in step6

Note: After you run through steps 1-6 in matlab, the variables markerIdx and ct are stored in the workspace. If you need to do subsequent reconstructions, simply type rigidBodyMotionFromMarkers(markerIdx,ct) at the matlab prompt. This will elimate steps 3-5.