Copy link to clipboard
Copied
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?
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);
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
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);