-
Rotation Expression keyframes need to be removed
So I tried searching the entire net for an answer and could not find it.
What I’m trying to do is come up with a script. Let me explain that
Imagine a clock with the 12 hours marker only.
I have a master layer (a line) that I animated the rotation (full 360)
Then I want to have an expression that will automatically as I duplicate layers to divide the angles and stop them equally but still rotate the initial degreesI’m sure I’m not making sense, let me try that again.
Assume there is layer 1 that rotates 360deg of a clock.
Then suppose I have 3 other layers that I want them to rotate together with the first layer but they will stop their rotation in such a way that the angle between them is equal. I’m putting the code here.As of now, it works only if all the layers are animated. I want to be able to remove the keyframes from the other layers. Is that possible?
I’m just starting expressions so this might be very rudimentary.
test=(360/thisComp.numLayers)
if (rotation < test*(index-1)){
value
}else{
test*(index-1)
}