Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Connect object to mask point?

  • Connect object to mask point?

    Posted by Jon Herron on March 10, 2006 at 2:33 am

    I have a mask with five points, with a stroke applied, best described as a string. I have the mask animated to unfurl and bounce like a string. Is it possible to connect an object to the end point of the mask, so the object follows that point?
    thanks
    jon

    Jon Herron replied 20 years, 2 months ago 5 Members · 13 Replies
  • 13 Replies
  • Mike Clasby

    March 10, 2006 at 3:11 am

    Below are two scripts that should help.

    The Hardmenpath, posted a nice Mask Roto Script (attaching track points to mask veticies) so a search for

  • Adolfo Rozenfeld

    March 10, 2006 at 3:12 am

    As far as I know, expressions can’t access the values of individual mask nodes. But one thing you could do is: pre-compose the layer, and then track the motion of the end of the stroke so you can make your object follow it (it may be easier if you temporarily bring down the stroke spacing values, since a dotted stroke will be easier to track).

    Adolfo Rozenfeld
    Buenos Aires – Argentina
    https://www.adolforozenfeld.com
    adolfo@adolforozenfeld.com

  • Adolfo Rozenfeld

    March 10, 2006 at 3:13 am

    So, while not with expressions, it can be done with scripts. Great to learn that!

    Adolfo Rozenfeld
    Buenos Aires – Argentina
    https://www.adolforozenfeld.com
    adolfo@adolforozenfeld.com

  • Jon Herron

    March 10, 2006 at 3:20 am

    Scripts!!! Yikes…I’ll try it for some script experience . Thanks for the tips guys! Nice idea on the pre-comp, track Adolfo!
    Thanks for the help

    jon

  • Jon Herron

    March 10, 2006 at 3:37 am

    Damn that script is crazy I dont even know where to begin!?!

  • Jon Herron

    March 10, 2006 at 3:47 am

    I see that the scripts for AE are jsx files? Dont need a .jsx to “run” in AE. Where do I get that? or do I copy and paste the info somewhere and save as a .jsx? Im a super duper script noob

    jon

  • Thehardmenpath

    March 10, 2006 at 4:00 am

    It’s easier than you think. Click on FILE/Run Script… and browse the downloaded script in your hard drive.

    Both scripts yikesmikes says will open a palette and give instructions for proper use. Good luck!

  • Mike Clasby

    March 10, 2006 at 4:01 am

    Drop the jsx files in the Scripts Flder in AE’s Support Folder, then open AE and File > Run Script and it should be there.

  • Jon Herron

    March 10, 2006 at 4:24 am

    Yeah, I see I was looking for a direct download file, instead of just saving the target. But now i get “unable to execute script at line 21. Window does not have a constructor” hmmmm…But Im still at work and noticed these were for AE 6.5, we still 6.0, I could be screwed, huh?
    jon

  • Mike Clasby

    March 10, 2006 at 5:20 am

    Others would know for sure (the script authors) but I think your right about being too low on the AE version scale for these scripts to work, so maybe try this:

    SpriteMaster had a work around without scripts, and it works for one vertex, but involves tracking, anyway he explains here:

    Name: SpriteMaster
    Date: Jan 13, 2006 at 11:15:48 pm
    Subject: Re: Tracking a point on an animated mask?

    https://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=2&postid=868265

Page 1 of 2

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