-
Trigger scale animation up/down on every second beat
Hey!
I’m trying to figure out how to scale a paths width up and down on every second beat, meaning when one beat hits it scales up and when the next beat hits it scales down, using a transition and not snapping to the value, something like tweening in AS/Flash back in the days :). I’m using Soundkeys btw, and I think the logic would be something like below but I’m not sure how to actually make it work. I’m getting errors but I’ve tried everything I can think of and would be very greatful for any help!
pathWidth = content("Rectangle 1").content("Rectangle Path 1").size[0];
soundkeysValue = thisComp.layer("Snare").effect("Sound Keys")("Output 2");if (soundkeysValue == 100 && pathWidth == 10){
size[100,2200]
}else if (soundkeysValue == 100 && pathWidth == 100){
size[10,2200]
}