Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to find the value – store it – and use it in an expression

  • Script to find the value – store it – and use it in an expression

    Posted by Jon Date on July 15, 2010 at 11:08 pm

    Is there a way to get a script to find a value of property – store it – and then use it when applying it as an expression on a layer?

    …..I’ll explain: I have been trying to get a script to look at the [0],[1],[2] values of the position on a selected layer. For example, 100,200,300 lets say. I would then like this data to be stored and accessed in a expression I later apply to the same layer through the script. I would also like the values not to change over time so they are set.

    var x = curentLayer.position[0] = ?
    var y = curentLayer.position[1] = ?
    var z = curentLayer.position[2] = ?

    curentLayer.position.expression = “setValue[x,y,z] then more expressions in here etc etc”

    been trying so many ways now and just cant crack it. Tried valueToTime but I need the value to be set at the stored and set at the value of the separate values if that makes sense. I really hope some one can help out in what ever way because I am sure this is basic but its just grabbing my by the balls at the moment!

    Thanks a lot.

    Jon Date replied 15 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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