How to access the Motion clip Keys

On 09/01/2013 at 05:45, xxxxxxxx wrote:

I am trying to access the motion clip keys to check various data, like the duration of the motion clip, value , number of keys etc.
I tried to access the tracks using the below code.

tracks = object.GetCTracks()
for track in tracks:
firstKey = track.GetCurve().GetKey();

it works fine if it is a normal animation track.

but if i add a Motion clip to the same track instead of normal animation the same object.GetCTracks() method returns an empty list.

Please some one help me, how to access the motion clip data?

On 17/01/2013 at 04:19, xxxxxxxx wrote:

Too bad C4D doesn't have an option for this. 😞

On 24/04/2013 at 07:51, xxxxxxxx wrote:

Can somebody suggest some one or some link to get an answer for this.