-
CS6 Problem with Expressions Char Array and Time
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;
oThe 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