Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Accessing atribute in timeremapped preComp to keyframe in masterComp

  • Accessing atribute in timeremapped preComp to keyframe in masterComp

    Posted by Miha Zaletel on August 19, 2015 at 9:06 pm

    Hello!

    I want to switch on/off 3 layers that are in precomp. This precompe is timeremapped and driven by Audio amplitude. I want to keyframe opacity of those layers from main comp.

    I set up an simple expression that drive opacity on and off from controllLayer .rotation in main comp.

    If there is no keyframes on rotation, expression works, but when I put keyframes on it freezes on 1st keyframe.

    Main compa duration = 5000f
    precomp dur. = 9 f

    I guess issue is, that I need on the same timecode in precomp(ex. f4) at diferent timecodes in maincomp (ex. f15,f60,f105…) different layers to be on.

    example:
    mainComp = 15f, precomp = f4, layer 3 is active, others not
    mainComp = 60f, precomp = f4, layer 1 is activ, others not
    ….

    Is this achieveble? please.

    Regards,
    m.z.

    //first layer in precomp Opacity attribute

    uCtrl= comp("GLAVA_big").layer("ustaControll").transform.rotation;
    if (uCtrl ==1) 100;
    else
    0;

    // second layer in precomp
    uCtrl= comp("GLAVA_big").layer("ustaControll").transform.rotation;
    if (uCtrl ==0) 100;
    else
    0;

    //third layer in precomp
    uCtrl= comp("GLAVA_big").layer("ustaControll").transform.rotation;
    if (uCtrl ==-1) 100;
    else
    0;

    Kalleheikki Kannisto replied 10 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    August 21, 2015 at 8:25 am

    Could you upload a simplified version of your project?

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