"global" function in expressions
Hi guys,
I'm looking for something very basic with expressions but can't seem to find it. I want to define a function and use that function inside ~100 or so layers. At the moment I'm typing a couple of lines of code inside each expression layer to drive the position of each layer which is insane of course. I just want to define one function (and define it only once):
function getPosition(null1,null2,offset){
...stuff..
return position
}
And in my comp, use that function everywhere to drive the position attribute for example:
getPosition("null5",null6",0)
Writing that function inside each expression is a bit daft of course but I can't seem to find a way to define such a function to use throughout my comp. Could anyone point me in the right direction? Thanks!
