Expression error in walk cycle

Rigging, animation, import/export of characters, props and cameras comprehensive tool set for After Effects.
Forum rules
Please read these rules and advices before posting.
  • Before you ask any question about a tool, to avoid duplicates, please:
    1. Search for a solution in the available guides and documents.
    2. Some video tutorials are available.
    3. Maybe you can find an answer in the frequently asked questions (FAQ).
    4. You can make a search to see if your question has already been asked.
    • Thank you for giving a detailed and precise title to your topics, to help searching in the future.
    • We're very few people to manage this forum, please be patient if we're a bit long to answer.
    • Don't hesitate to answer to other people's questions! The goal of this forum is not only to have the Rainbox team answer users' questions, but to have everyone sharing and helping each other.
    • Finally, please always be polite, and keep in mind that all we want is sharing techniques and knowledge, helping each other.
Post Reply
Krollspell
Posts: 2
Joined: Thu Nov 15, 2018 5:12 pm

Expression error in walk cycle

Post by Krollspell » Thu Nov 15, 2018 5:17 pm

Hi

When i make an automated walk cycle i get 2 expression errors on the arm (no swinging or moving of the arms at all)


------------------ On the clavicle rotation and the arm rotation i get an "Undefined value used in expression" ---------------------------

//Duik.proceduralWalk
amp = effect("Walk Cycle")(45).value;
cycleTime = effect("Walk Cycle")(105).value;
armsSoftness = effect("Walk Cycle")(46).value;
characterSoftness = effect("Walk Cycle")(22).value;
energy = effect("Walk Cycle")(110).value;
walkSpeed = effect("Walk Cycle")(27).value;
left = false;
if (walkSpeed <0) left = true;
amp = amp*5*energy/100;
if (amp > 0)
{
softness = armsSoftness + characterSoftness;
decalage = 1.5;
amorti = 0;
sin = Math.sin(cycleTime*Math.PI*2+decalage);
for(i=0;i<amorti;i++) {
sin = Math.sin(sin);
}
rot = sin*amp;
rot = rot + rot*softness/100;
if (left) -rot;
}
else 0;

-------------------------------------------------------------------

...Any on else with this problem?

Jacob

User avatar
Duduf
Posts: 460
Joined: Mon Jun 20, 2016 2:59 pm

Re: Expression error in walk cycle

Post by Duduf » Sat Nov 17, 2018 11:08 am

Hi,

Are you on AE CC2019?
If so it may be an issue with the new expression engine, which I'll have to fix (let me know). A workaround is to set the expression engine to "legacy" in the project parameters.

Krollspell
Posts: 2
Joined: Thu Nov 15, 2018 5:12 pm

Re: Expression error in walk cycle

Post by Krollspell » Sat Nov 17, 2018 11:19 am

Hi,

Thanks for responding and for the amazing work you are doing!
Yes i'm on CC2019, and everything works when I set the Expression Engine to legacy...

The new Javascript engine produces 6 expression errors in the walkcycle, Clavicle, Arm and foot roll (right and left side)

Jacob

User avatar
Duduf
Posts: 460
Joined: Mon Jun 20, 2016 2:59 pm

Re: Expression error in walk cycle

Post by Duduf » Sat Nov 17, 2018 11:22 am

Thanks for your feedback, I'll fix this in the next update ;)

Post Reply