ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

CS6 Problem with Expressions Char Array and Time

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Diego MelladoCS6 Problem with Expressions Char Array and Time
by on Mar 3, 2014 at 5:52:34 pm
Last Edited By Diego Mellado on Mar 3, 2014 at 6:01:36 pm

Dear all,
I am using CS6 (11.04 update) and I can not explain what is happening.
I am using this expression for opacity:

ch1 = thisLayer.name[0];
ch2 = thisComp.layer(1).name[(Math.round(time))];
if (ch1 == ch2) o = 100;
else o = 0;
o


The layer name has one char an the comp name has 5 chars.
If it set the time to 0:00:00, and I evaluate the expression, I have this error:

After Effects warning: Class 'TextProperty' has no property or method named '7'. Expression disabled.

It seems like it is trying to access to the pos 7 of the char array of thisComp.name[] but at time 0:00:00 this makes no sense..

I have tried the very same expression (copy&paste) in CS5 and works perfectly.
I have attached both projects for testing.

Can somebody please tell me why? This is driving me crazy...

Best,
Diego


Return to posts index

Diego MelladoRe: CS6 Problem with Expressions Char Array and Time
by on Mar 3, 2014 at 6:04:24 pm

Here it its the CS5 Version of the Test

7186_cs5test.aep.zip

An here it is the CS6 Version of the Test

7188_cs6test.aep.zip

Best,
Diego


Return to posts index

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