• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Using time remap and a selector to loop between keyframe sets

Community Beginner ,
Mar 06, 2024 Mar 06, 2024

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?

TOPICS
Experiment , Expressions , How to

Views

105

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 06, 2024 Mar 06, 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);

Votes

Translate

Translate
Community Expert ,
Mar 06, 2024 Mar 06, 2024

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);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 06, 2024 Mar 06, 2024

Copy link to clipboard

Copied

LATEST

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);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines