Highlighted

Connecting background to walk cycle made in Duik

New Here ,
May 14, 2020

Copy link to clipboard

Copied

I have created a walk cycle with Duik Bassel 2. My character is going to walk on the same position throughout the animation with a sliding background behind it. The character is going to stop walking at a few places so I need the background to stop moving as well. I could just keyframe the position of the background to stop at the same time as my character but I was wondering if there is a smarter way to animate the background to the walk cycle. Is there a way to write an expression that connects the background position to the general motion of my walk cycle?

TOPICS
Expressions, Scripting

Views

679

Likes

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

Connecting background to walk cycle made in Duik

New Here ,
May 14, 2020

Copy link to clipboard

Copied

I have created a walk cycle with Duik Bassel 2. My character is going to walk on the same position throughout the animation with a sliding background behind it. The character is going to stop walking at a few places so I need the background to stop moving as well. I could just keyframe the position of the background to stop at the same time as my character but I was wondering if there is a smarter way to animate the background to the walk cycle. Is there a way to write an expression that connects the background position to the general motion of my walk cycle?

TOPICS
Expressions, Scripting

Views

680

Likes

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
May 14, 2020 0
Most Valuable Participant ,
May 14, 2020

Copy link to clipboard

Copied

And how often do you need it? Are you asking to create a convoluted expression for what amounts to a handful of keyframes otherwise? Of course there are ways to calculate all this, but it may in fact not even look good, so if you can and this isn't some long 30 minute animation or a template for recurring use just do it by hand.

 

Mylenium

Likes

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
Reply
Loading...
May 14, 2020 0
Guide ,
May 14, 2020

Copy link to clipboard

Copied

I did such a think once and it was horrible!

 

My solution was a recursive function, which calculates the "steps" and moves the character accordingly. Due to expression limits, the calculation had has to take place in every frame for all previous frames. The outcome did work, but painfully slowed down AE. I finally converted the expression to keys to get the values and drop the expression jsut to be able to work again.

 

A better solution, which I never test, would be to map the character walking against "time". So you say one step is 30px (I think you can read out those values from DUIK) and the character is making 0.5 steps per second and is walking for 5 seconds, so the travel distance is step * steps/s * time. You can meassure time distance between two keyframes or markers to get the time-spans... it should be doable, but as Mylenium said, putting some keyframes on the background is more straight forward and way faster.

 

*Martin

Likes

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
Reply
Loading...
May 14, 2020 0
Adobe Community Professional ,
May 14, 2020

Copy link to clipboard

Copied

The iExpressions Walk Cycle offers a clean solution for that.

It also works with DuiK.

The concept is essentially the opposite of DuiKs walk cycle. In DuiK, you are creating a walking loop and then it is up to you to move either the character or the background accordingly. With the iExpression, you just keyframe the position of the character and/or the background and the expression figures our how the legs need to be moved to fit.

Here is a general overview:

 

And here is an example how to combine this with DuiK

 

iExpressions is available at aescripts and the walk cycle is just one of more than 100 expressions included in it: https://aescripts.com/iexpressions/

 

 

Likes

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
Reply
Loading...
May 14, 2020 1