Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Point of Interest Script

  • Point of Interest Script

    Posted by Harry Rambaut on December 6, 2007 at 1:26 pm

    Hello,

    trying to attach source point of shine to point of interest of camera, which i have manged to do using pickwick.

    however i wanted to adjust the y value and have got stuck

    this is the code

    src=thisComp.layer(“Camera”).transform.position

    Filip Vandueren replied 18 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    December 6, 2007 at 2:51 pm

    Hi there,
    You need a “layer space transform” because the Camera’s POI is in 3d, but Shine’s Centre is in 2D.

    first set the Shine-point to [0,0]
    now try this expression for the Shine point:


    target = thisComp.activeCamera;
    value + fromComp(target.toComp(target.pointOfInterest));

    now, you can scrub or keyframe the value of the point if you want to offset it in Y or X, because that value gets added to the calculated valu of where the POI is on screen.

    I haven’t tested this code, there could be a typo.

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