Model Generation : Measure CT Marker Coordinates in Maya
Last updated
Last updated
vAvg – calculates centroid for each individual marker based on the average position of selected vertices.
vAvg2 – breaks all unconnected elements into separate objects and automatically calculates the centroid of each element.
Click the imp button on the XROMM Maya tools shelf.
Click impObjs, Shift+select(pc) or command+select (mac) bone and marker models and open.
Click Hshd on the shelf. In the "Create" window (bottom left) click Lambert to create a new shader (probably named Lambert2). On the right side of the screen, set the color, and drag the transparency slider towards the right. Minimize the hypershade window.
Select all bone models (but not the markers), reopen the hypershade window, right click on the lambert2 icon and select Assign Material to Selection. Close the hypershade window. You should now be able to see your model markers through the transparent bones, however, it will still be difficult to select the marker models because the bone models are in the way.
With the bone models still selected, create and place them on a new layer using the button shown below. If you do not the layer editor, click the Channel Box/ Layer Editor tab on the right side of the screen.
Click the blank 3rd box twice which changes to the letter R and the bone models become unselectable but still show smooth shading.
Now you should be able to see and select the marker mesh through the transparent bone model.
Select the marker object.
Click vAvg on the XROMM tool shelf.
Right click-hold and select vertex from the marking menu
Drag your mouse over a single marker (selected vertices should become yellow).
In the Marker Name box, enter a name for the marker.
Press the Calculate Centroid button and a locator will be created.
Repeat steps 3 - 8 for each marker.
For all markers in a single object: vAvg2
Select the marker object.
Click Calculate Centroid
Click the Hgph button on the shelf. Note there are two groups created by vAvg two. The first group are the isolated meshes from the marker model. The second group are the calculated centroids with the suffix vAvg2.
Renaming markers from vAvg2 is best done in the next step; CTexport.
If using vAvg2, you may want to rename your markers. To do this, select the marker from the view window, hypergraph or All Locators list, type the new name in the Rename Centroid text field and click rename. The list will update with the new name for the object.
Select markers that you want to export in the left window and click Move Right. You should export marker sets for each rigid body as a single file for easier use with XMALab.
Click Export to .csv File.
Click the CTex from the XROMMtools Shelf, or type CTMexport in the MEL box