Skip to main content
Inspiring
October 25, 2015
Answered

AEGP_GetNewKeyframeSpatialTangents returns incorrect data

  • October 25, 2015
  • 2 replies
  • 536 views

Hi All,

I'm trying to read the in/out value of the animated mask stream.

I used the AEGP_GetNewKeyframeSpatialTangents function


AEGP_StreamValue2 tangIn_ = { }, tangOut_ = {  };

ERR(keyframeSuite4->AEGP_GetNewKeyframeSpatialTangents(pluginId, streamHandle, keFrameIndex, &tangIn_, &tangOut_));

After using the values, I'm trying to dispose the output values,

streamSuite3->AEGP_DisposeStreamValue(&tangIn_)

streamSuite3->AEGP_DisposeStreamValue(&tangOut_)

and that crashes the AE (2014).

Any ideas why AEGP_GetNewKeyframeSpatialTangents return incorrect streamH value in the AEGP_StreamValue2?

This topic has been closed for replies.
Correct answer françois leroy

Hi kotuk81,

it crashes because SpatialTangents are used for Position streams, not masks.

I think what you're trying to get is 'AEGP_MaskVertex' values. In this vertex, you'll find the vertex itself (x and y) AND the tangents (in x, in y, out x out y).

You can have a look at this thread for details:

Fail to add new mask vertex

The thread is about 'setting' the mask vertices, but you'll easily figure how to 'read' them.

Hope it helps,

François

2 replies

kotuk81Author
Inspiring
October 29, 2015

Hi François,

Yes, you're right, I was using the wrong functions.

What I was seeking for is the TemporalEase values and I had no problems to pull those from AE)

françois leroy
françois leroyCorrect answer
Inspiring
October 28, 2015

Hi kotuk81,

it crashes because SpatialTangents are used for Position streams, not masks.

I think what you're trying to get is 'AEGP_MaskVertex' values. In this vertex, you'll find the vertex itself (x and y) AND the tangents (in x, in y, out x out y).

You can have a look at this thread for details:

Fail to add new mask vertex

The thread is about 'setting' the mask vertices, but you'll easily figure how to 'read' them.

Hope it helps,

François