Page 1 of 1

Expression error in walk cycle

Posted: Thu Nov 15, 2018 5:17 pm
by Krollspell
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

Re: Expression error in walk cycle

Posted: Sat Nov 17, 2018 11:08 am
by Duduf
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.

Re: Expression error in walk cycle

Posted: Sat Nov 17, 2018 11:19 am
by Krollspell
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

Re: Expression error in walk cycle

Posted: Sat Nov 17, 2018 11:22 am
by Duduf
Thanks for your feedback, I'll fix this in the next update ;)

Re: Expression error in walk cycle

Posted: Mon Jul 08, 2019 1:52 pm
by hoelleoh
Same here. It worked when i turnd projectexpressions to (extend script) instead of java script on AE2019