//导出路劲
string $savePath = "E:\item";
//每一段的起始帧
int $startFrame[] = {1,11,21,31,41,51,61,71,81,91,101,111,121,131,141,151,161,171,181,191,201};
//每一段的结束帧
int $endFrame[] = {10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210};
for($i=0;$i<21;++$i)
{
print $i;
print($startFrame[$i]);
string $start = string($startFrame[$i]);
string $end = string($endFrame[$i]);
string $splitName = "BS"+$start;
print($startFrame[$i]);
print($endFrame[$i]);
FBXExportSplitAnimationIntoTakes -clear;
FBXExportSplitAnimationIntoTakes -v $splitName $startFrame[$i] $endFrame[$i];
//Sobjname为导出的文件名的前缀
string $SObjname = "CD_BS_anim"+ $start+"-"+$end;
FBXExport -f ($savePath +"/" + $SObjname +".fbx") -s;
}