Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions yet another expression question, help please.

  • yet another expression question, help please.

    Posted by Peter Stenhouse on July 18, 2005 at 11:38 am

    Hi there. I am fanning out a pack of palying cards and have successfully(to great delight) written an expression that rotates them all in relation to a “control card”tm. However I also want to step them back in 3D space, incrementally.
    I imagine I would use each layers index property, but can’t seem to isolate the z position of the layer.
    Thanks for your help.
    Is there are more complete library available of properties, like choosing position but which axis etc, and maybe a library of syntax, like which brackets, hyphens and parenthesis to use when. what is temp.
    Great again, thanks for all your help.
    I appreciate your genius
    Peter

    Dan Ebberts replied 20 years, 10 months ago 3 Members · 2 Replies
  • 2 Replies
  • Mylenium

    July 18, 2005 at 12:15 pm

    temp is a placeholder variable, no more, no less. 3D position is an array property as in [X,Y,Z]. Arrays are counted from zero, so Z-position is position[2]. All that is explained in the manual (although deeply buried), and to some degree in the JSX scripting guide. The rest is just JavaScript and any site explaining that will help yoou there.

    Mylenium

    [Pour Myl

  • Dan Ebberts

    July 18, 2005 at 2:46 pm

    If you calculate a new value for z you’d combine existing x and y with the new z this way:

    z = (whatever);
    [value[0],value[1],z]

    If you calculate a z offset, you’d add it in this way:

    z = (whatever);
    value + [0,0,z]

    Dan

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