Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions About corner pin: get corners position in world coordinate space and convert corner pin data to 3D Null

  • About corner pin: get corners position in world coordinate space and convert corner pin data to 3D Null

    Posted by Gabriele Bartoli on November 14, 2015 at 12:49 am

    Hello there. I have a couple of quick questions for you guys.

    Here is what I’m trying to do. I want to use nulls to control the vertices of the corner pin effect. I have to superimpose three rulers on top of 200 different appliances(they are not moving, but having to worry about six Nulls per project instead of 12 corner pins would save me a lot of time). I figured that to make it work I have to put the layer in the top left corner with its anchor @ [0,0], so that the two coordinate spaces line up.

    Before:

    After:

    My question is this: is there a quick way to read the corner pins’ position related to the “world coordinate space”(mainComp space)? This way it wouldn’t matter where the layer is sitting to begin with. I know I could do it by writing some expressions, but I read around the internet that there are some functions called toWorld and fromWorld and I was wondering if they might help me out.

    On a side note: is there a way (quick or not-so-quick) to convert corner pin data to 3d coordinate space? I also have to place a string of text beside the ruler and I’d like it to be oriented like the ruler itself.

    If you got this far, thanks for your time!

    Cheers,

    Gabe

    Gabriele Bartoli replied 10 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    November 15, 2015 at 5:41 pm

    For top left corner pin position when the corresponding null is named “top left”:

    fromComp(thisComp.layer("top left").transform.position)

    …and others in same manner.

  • Gabriele Bartoli

    November 16, 2015 at 11:24 am

    Thanks! I actually got it working last night 🙂

    Cheers

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