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

Expression

New Here ,
Aug 08, 2023 Aug 08, 2023

Hello There, I'm Character Animator & I use a lot of Expressions and connect with the slider control and Time remapping when I try to animate with a keyframe nothing works so I need a guide or pdf about expression.

TOPICS
Error or problem , Expressions , How to
226
Translate
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 ,
Aug 08, 2023 Aug 08, 2023

Time Remapping only works on a. nested comp (a pre-comp) that is already animated or on a movie in the timeline.  It looks like you have just created an expression that turns the slider value into a frame number. If the slider value increases, the time changes. Assuming you are working with a 30 fps comp, animating the slider from zero to ten over five seconds will slow down the original movement from a third of a second to five seconds. If you then animate the slider from ten to zero, the action will reverse because the slider value will always return the corresponding frame number.  

 

Your expression uses framesToTime, so the slider's maximum value should be limited to one frame less than the last default time remapping keyframe. You can accomplish that with this expression applied to the slider control:

 

a = thisComp.layer("Main Controller").effect("Head Control")("Slider");
t = framesToTime(a);
tMax = key(2).time - thisComp.frameDuration;
linear(t, 0, tMax)

 

This won't limit the value you can assign to the slider but will prevent the slider from displaying empty frames. 

 

If that's not what you need, let me know. Just remember that the slider value increasing means the action will move forward, and the slider value going down will reverse the motion in the frame.

 

I have added a similar expression to a slider so that the slider's value is limited to the number of frames between the first and last time remapping keyframe. Run the slider value past the maximum value or less than zero, and it will always return the first or last frame of the animation. 

Translate
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
New Here ,
Aug 09, 2023 Aug 09, 2023

Thank you for your reply, I upload a video about the main problem.

Translate
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
New Here ,
Aug 09, 2023 Aug 09, 2023
LATEST

Face details in the same as the head comp

Translate
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