private bool CheckTrackName(IAGAnimationTracks pTracks, string name)
{
IArray trackArray = pTracks.AGTracks;
IAGAnimationTrack pTrack;
int count = pTracks.TrackCount;
bool trackExist = false;
for (int i = 0; i < count; i++)
{
pTrack = (IAGAnimationTrack)trackArray.get_Element(i);
if (name == pTrack.Name)
{
trackExist = true;
break;
}
}
return trackExist;
}