Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects CS6 Problem with Expressions Char Array and Time

  • CS6 Problem with Expressions Char Array and Time

    Posted by Diego Mellado on March 3, 2014 at 5:52 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

    Diego Mellado replied 12 years, 2 months ago 49,517 Members · 1 Reply
  • 1 Reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy