Skip to main content
Participating Frequently
February 4, 2015
Answered

Copy mask to another layer

  • February 4, 2015
  • 1 reply
  • 1226 views

Hi,

Is there any way I can copy a mask to another layer with all his keyframes ? I'm looking for a faster way than having to run a loop and setValueAtTime every keyframes. ( I have a keyframe at each frame and this would be a heavy process )

thanks

This topic has been closed for replies.
Correct answer UQg

If you want to copy the mask as is, i.e. without modifying anything (no position offset, no scale change etc) probably the shortest way is to use an expression (thisComp.layer("MyRefLayer").mask(1).maskPath, something like this).

But if you want to change something in the coordinates of the path points, you probably can't escape a loop over all keyframes.

And if you really have many keys, setValuesAtTimes by chunks of say 100 (fire in the dark), might be shorter than setting keys one by one.

Xavier.

1 reply

UQg
UQgCorrect answer
Legend
February 4, 2015

If you want to copy the mask as is, i.e. without modifying anything (no position offset, no scale change etc) probably the shortest way is to use an expression (thisComp.layer("MyRefLayer").mask(1).maskPath, something like this).

But if you want to change something in the coordinates of the path points, you probably can't escape a loop over all keyframes.

And if you really have many keys, setValuesAtTimes by chunks of say 100 (fire in the dark), might be shorter than setting keys one by one.

Xavier.

Participating Frequently
February 6, 2015

I had not thought of that ! thanks !