Skip to main content
Participant
March 7, 2024
Answered

Using time remap and a selector to loop between keyframe sets

  • March 7, 2024
  • 1 reply
  • 336 views

Has anyone managed to tie a "loopOut" expression to a menu selector?

I was wondering if I could use time remap to loop between a set of keyframes tied to an expression control selector, but I haven't found a way of using the "loopOut" expression tied to an "if". Basically what I want is to select value "1" on the menu so that it loops between "key(1)" and "key(2)". If I select value "2" on the selector I want it to loop between "key(3)" and "key(4)" and so on. 



Do you reckon it's possible?

This topic has been closed for replies.
Correct answer Dan Ebberts

Probably a time remapping expression something like this:

m = effect("Dropdown Menu Control")("Menu");
n = 2*m - 1;
t = key(n).time + time%(key(n+1).time - key(n).time);
valueAtTime(t);

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
March 7, 2024

Probably a time remapping expression something like this:

m = effect("Dropdown Menu Control")("Menu");
n = 2*m - 1;
t = key(n).time + time%(key(n+1).time - key(n).time);
valueAtTime(t);
Dan Ebberts
Community Expert
Community Expert
March 7, 2024

Actually, I think it's a little simpler than that:

m = effect("Dropdown Menu Control")("Menu");
n = 2*m - 1;
key(n).time + time%(key(n+1).time - key(n).time);