Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Locking the size/position/rotation of 3d object

  • Locking the size/position/rotation of 3d object

    Posted by Julia K on April 6, 2010 at 6:50 pm

    Hi,

    I’m trying to create a template of a book in AE. The book is made up of 6 3d planes so it’s a 3d rectangle. I need to find an easy way for someone to be able to swap out the cover and the spine image and have it automaticaly adjust the size to fit.

    Thank you for your help!

    Ben Rollason replied 16 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Ben Rollason

    April 7, 2010 at 4:03 pm

    Parent all of the faces to a null.

    Then this in the scale.

    tOrigWidth = 300;//width of original source
    tOrigHeight = 100;//height of original source
    L = thisLayer;
    [tOrigWidth*100/L.source.width, tOrigHeight*100/L.source.height, 100];
    

    Wouldn’t it be easier to use precomps though and just get your user to import their cover into the precomp and resize it?

    -Ben.

    http://www.benrollason.com

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