Copy link to clipboard
Copied
Hi there,
I'm trying to get the layers transform-info (rotation, translation).
In the docu I found the AEGP_GEOMETRYSUITE
The problem is that I don't find a AEGP_GEOMETRYSUITE in AEGP_SuiteHandler.h
Can anyone help me?
thx
Copy link to clipboard
Copied
Can anyone help me?
i can only help by saying: you're not alone with this problem.
that question was posted here before, and was left unanswered by adobe.
as far as i know, that function was never included in the SDK, and is unavailable for developers.
most probably a mistake in ae's API department.
if you should find a way to hack that suite into use, please post it back here.
the only solution i could give you is to use AEGP_GetLayerToWorldXform or AEGP_GetLayerToWorldXformFromView instead,
to get the transformation matrix of the layer.
you can then (try to) decompose that matrix to retrieve the original data.
sorry...
😞
Copy link to clipboard
Copied
Can anyone help me?
Yes!
i can only help by saying: you're not alone with this problem.
that question was posted here before, and was left unanswered by adobe.
The SDK provides direct contact information for an AE API Engineer; that's the best way to reach us.
as far as i know, that function was never included in the SDK, and is unavailable for developers.
most probably a mistake in ae's API department.
The above is incorrect. The function is included in the SDK (otherwise, where would The_mts have seen it?), though it's not part of the AEGP_SuiteHandler helper class.You can use the suite directly, or add it to AEGP_SuiteHandler yourself. No promises, but it'll probably show up there in the next SDK release.
Hope this helps!
Copy link to clipboard
Copied
bruce???
thank god you're still watching this forum!
how can the geometry suite be accessed directly?
the structure that defines the geometry suite doesn't exist in any of the sdk files. can the suite be accessed without it?
could you post a code snippet?
any help with this will be greatly appreciated, as decomposing matrices is no fun...
thanks for coming back!
shachar.
🙂
Copy link to clipboard
Copied
Hi,
thx for your reply.
Some code snippet would be nice. Anyway I will try to implement it by myself.
Copy link to clipboard
Copied
Okay, I'm a dork. I didn't realize AEGP_GeometrySuite was no longer in the SDK. Sorry for the false hope.
Copy link to clipboard
Copied
I'm still watching, but my API knowledge is (as you can see) quite rusty.
Copy link to clipboard
Copied
So, how can I get the geometry Data of a layer?
I need to dump the x,y,z-position and the x,y,z-rotation per frame.
Copy link to clipboard
Copied
Those sound like...streams! See Easy_Cheese and ProjDumper for position stream access, and Streamie for some (non-positional) stream manipulation.
Copy link to clipboard
Copied
I have checked the ProjDumpe, but I cannot see how to get the position and rotation at a time.
Can you give me some more help? In your docu I found a AEGP_GetNewLayerStream, AEGP_LayerStream_POSITION.
Is this what I am looking for? Or AEGP_GetLayerStreamValue ?
Copy link to clipboard
Copied
THX! I've Got it!
Copy link to clipboard
Copied
There is only one value I'm missing.
How can I read the composition-duration?
Copy link to clipboard
Copied
AEGP_GetItemFromComp(), AEGP_GetItemDuration().
Copy link to clipboard
Copied
I found:
AEGP_GetCompFramerate
AEGP_GetCompWorkAreaStart
AEGP_GetCompWorkAreaDuration
I want to dump data every frame.
But how can I get the current composition? I found the AEGP_GetCompFromItem, but what Item can I use?
I don't find a "GetActiveComp" or something like that.
Copy link to clipboard
Copied
Active, in what context? Are you calling from an effect?
Copy link to clipboard
Copied
I have used the AEGP_GetActiveItem.
I have selected I layer in the timeline.
As long as the timeline is active it works.
many many thx