Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to add 4 sets of data to markers

  • Script to add 4 sets of data to markers

    Posted by Teo Camporeale on March 18, 2008 at 9:29 pm

    Hello to all, I’m trying to create markers in AfterEffects with 4-point tracking data embedded. I started out using the provided AE script called “Convert Selected Properties to Markers” to place markers on the timeline with the Position (x,y) values from a layer with CornerPin applied. The purpose is to eventually export the position data to a Flash movie with the markers coming up as Flash Cue Points.
    When I select the CornerPin effect, and apply that script, however, only 3 sets of data are embedded into the markers. Also, the markers still need to be given a name, since Flash doesn’t see them (action script) unless they’re named (this is less of a problem, though).
    Apparently this supplied script with AE is written only to support 3 sets of data. Does anyone have one written already, or could offer help in providing the java script necessary to make the markers contain 4 sets of data?
    Thank you very much for any help!
    -Teo

    Tamer Qarrain replied 15 years, 6 months ago 4 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    March 18, 2008 at 10:13 pm

    I think they’re all there, it’s just that the UI for the marker only displays the first three. If you create a layer named test, apply Corner Pin to it, run the script, then apply this expression to a text layer you’ll see that the 4th parameter is there:

    thisComp.layer(“test”).marker.key(1).parameters[“Corner Pin_Lower Left”]

    Dan

  • Teo Camporeale

    March 19, 2008 at 4:40 pm

    Thanks so much Dan. Using your expression, I was able to confirm the 4 sets of data were in there. I made 4 text layers and changed the expression in each one to reflect the 4 separate marker-parameters. What’s really weird is how the UI messes it all up , even with the 3 sets that do show– It actually does something like Frame1: Param A, Param B, Param C; Then, Frame 2: Param D, Param A, Param B; and so on…

    My next wait-and-see is to find out if the “real” data (numbers from your expression) actually translates to Flash cue points…

    Anyhow, thanks again for your help!
    -Teo

  • Dan Ebberts

    March 19, 2008 at 4:44 pm

    Please let us know how it turns out.

    Dan

  • Teo Camporeale

    March 20, 2008 at 3:04 pm

    Thanks very much Dan! It worked like a charm. The final result tracks in Flash almost as clean as the AE motion track.
    Again, thank you for your generous time and support.
    -Teo

  • Jeff Keyser

    October 12, 2009 at 6:01 pm

    Hey guys,

    I just came across this thread, and was wondering if you have had any experience applying tracked data from AE into dynamic text within Flash.

    I understand how to convert cornerpin/tracked data into markers and cue points within the FLV, but it gets a little hazy when applying that data to dynamic text within flash.

    There was a MAX conference that I found that went through the steps within AE/Mocha, but the code that was shown in the video throws several errors.

    While I understand this is an After Effects specific thread, the possibilities of AE/Flash integration directly relates to finishing and deployment.

    Any ideas?

    Thank you!
    Jeff

  • Tamer Qarrain

    February 28, 2011 at 8:05 am

    Hi,

    It works for me, but what about if I want to add 4 sets of data for multiple objects, when I export the data to Flash, I receive and error, and I believe variables are overwritten! there should be a way to rename the markers in After Effects!

    Any insight is highly appreciated

    Tamer

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy