Hello everyone,
I’m John Draisey from Los Angeles, and I’ve been stumped trying to MEL script the creation of a trax editor clip with a custom name (i.e. the name of the scene file). The ultimate goal is to export the newly created clip to a Maya animation file.
Here’s what I’ve made so far:
// Get current file name
$sceneonly = `file -q -sn -shn`;
// Strip .ma extension from file name
basename ( $sceneonly, ".ma");
// Select root controls for animation
select -r Controls_SelectSet;
// Get beginning of time slider
float $minTime = `playbackOptions -q -minTime`;
// Get end of time slider
float $maxTime = `playbackOptions -q -maxTime`;
// Create clip animation
CreateClip; doReload clipEditorPanel1ClipEditor;
performCreateClip 0;
clipSchedule -name "sceneonly" -sc 1 -allAbsolute -startTime $minTime -endTime $maxTime;
refreshAE;
If anyone knows how to fix the script, I would really appreciate the help! I’m trying to create 70+ trax clips per character, and there’s a lot of characters.
Thanks,
John