ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Mask path and linear expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Riccardo Schito
Mask path and linear expression
on Nov 12, 2019 at 4:52:47 pm

Hi all!
I'm trying to do a simple setup so that every time I move a layer, a mask path animates.
I know that the problem (at least for my newbieness) about mask path is that there's no changeable value like any other properties, so I tried to use index key to set a linear expression.
It doesn't work because the error says "Path object found where a number array or property is needed".

This is not urgent , I can skip this things by simply animating mask keyframes, but I don't know how to do that, and that drives me crazy.

If anybody can help me, well... Thank you in advice!

var A = thisComp.layer("layer").transform.position[0];
linear (A,0,100,key(1),key(2))


Return to posts index

Alex Printz
Re: Mask path and linear expression
on Nov 12, 2019 at 5:48:49 pm

try it like this:

valueAtTime(linear(A,0,100,key(1).time,key(2).time))

Alex Printz
Mograph Designer


Return to posts index

Riccardo Schito
Re: Mask path and linear expression
on Nov 15, 2019 at 6:04:55 pm

Mmh, no I'm sorry, it doesn't work.
I thought it was a issue with the inPoint of each layer, so I tried to add a var T= time - (thisComp.layer("layer").inPoint + inPoint) but then the expression becomes incorrect...


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]