Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions toComp() analog in a jsx script?

  • toComp() analog in a jsx script?

    Posted by Scott Higgs on February 2, 2010 at 7:50 pm

    Anyone know if there is a method I can use in a script to achieve spatial transforms similar to toComp()/fromComp() in an expression?

    I’m looking to create a bounding box for multiple selected layers which will bound the apparent extents of the layers in question as seen by the active camera.

    I guess I could use expressions to set the size of the bounding box then extract its transform values in the script, but I’d rather do it all in one place if possible.

    Thanks in advance.

    PS This is my first post, but I’ve been reading for ages. So thanks also retroactively for all the great answers to questions I’ve had in the past.

    Scott

    Scott Higgs replied 16 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 2, 2010 at 8:29 pm

    Not directly. Depending on what you’re doing, it might make sense to have the script add a Slider or Point Control to the layer, drop in the appropriate expression, harvest the result, and delete the control.

    Dan

  • Scott Higgs

    February 3, 2010 at 3:47 am

    Yep. That works. Thanks Dan.

    -Scott

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