Maya mel Script from bojou to after effects


I present a short renamer script, which you can use to rename the tracking-points-data to match after-effects import convention.

//Code snippet 4 Maya 2010+ -- Yafes Sahin
//Change Name of Selected objects
//to match after-effects
global proc changeName(int $position)
string $data[] = `ls -sl`;
int $i;
for($i = 0; $i < size($data); $i++)
    string $cutout = substring($data[$i], $position, size($data[$i]));
    string $newString = ("null" + $cutout);
    select -r $data[$i];
    rename  $data[$i] ("" + $newString);

1) select all tracking Points
2) execute: “changeName(6)” (execute before the script above)
the number is to cut signs before the identifying number
3) save your .ma file and just import it into after effects

No Comments

Add Comment