ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Markus Geduld's AE Expressions Book error

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Eduard Buturuga-Pascu
Markus Geduld's AE Expressions Book error
on Aug 8, 2018 at 9:20:16 pm

Hope I'm not repeating another thread, if so I am, sorry. I'm following Markus' AE Expressions book, in Chapter 7, there is the following expression in the source text field of a layer:

var food = ["eggs", "bacon", "cheese", "soup", "cake", "ice cream", "apples", "ham"];
var rate = 1.5;
var i = Math.floor(time / rate) % food.length;
food[i]

In the old version of AE, I'm sure this expression worked great, but something in the Expression language changed, making this expression giving the following error: This project contains an expression error 1 of 1
Error at line 4 in property 'Source Text' of layer 1 ('food') in 'Comp 13'. = does not have a value., an expresssion was disabled as a result.

line 4 is:
food[i]

But why is the expression being disabled? Any ideas please?

Many thanks in advance.


Return to posts index

Dan Ebberts
Re: Markus Geduld's AE Expressions Book error
on Aug 8, 2018 at 9:46:06 pm

I just copied it from your post and pasted it into CC 2018 and it works fine for me.


Dan



Return to posts index

Eduard Buturuga-Pascu
Re: Markus Geduld's AE Expressions Book error
on Aug 8, 2018 at 9:52:47 pm

Many thanks for your help Dan. I copied the code in a different comp and it works, must be something to do with the conversion from the old version of the project to the new. Thanks again!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]