It sounds like you are mixing cornet pin and camera tracking. I don't understand what you are trying to do.
Thank you Mylenium! It might be that I didn't understand everything in the text but while it became clear to me how to get the camera coordinates I am looking for (although it appears to be a bit complicated an I'd wish there was yet another way), I don't find an explanation on how to find the coordinates of the four edges of my objects …
Could someone point that out for me?
Rick, I guess you're right as I have posted two questions within one thread.
What brings them together is just that in both cases I want to extract data from AE to Xcode.
I'm not quite sure how corner pinning can help me getting the coordinates as I have never worked with it … could you explain it to me or show me where to find an explanation?
Edges/ lines are determined by the coordinates of their end points - basic planar geometry. You can get those by using the toWorld() method and filling in the corner point coordinates relative to the layer anchor point, e.g.:
Easy as Pi (or pie if you prefer).
Great, thanks! Now I got it.