Expression error in walk cycle

Rigging, animation, import/export of characters, props and cameras comprehensive tool set for After Effects.
Locked
Krollspell

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

Duduf
Posts: 915
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

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

Duduf
Posts: 915
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 ;)

hoelleoh

Re: Expression error in walk cycle

Post by hoelleoh » Mon Jul 08, 2019 1:52 pm

Same here. It worked when i turnd projectexpressions to (extend script) instead of java script on AE2019

Locked