Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Extendscript: Add keyframes to hidden property

  • Extendscript: Add keyframes to hidden property

    Posted by Simon Heimbuchner on January 1, 2019 at 4:19 pm

    Hey guys,

    as the title says, I’m trying to add keyframes to hidden properties.
    Pretty straight forward, this is my code:
    var Comp = app.project.activeItem;
    var currentLayer = Comp.selectedLayers[i];
    currentLayer.effect("Test")(5).setValueAtTime(Comp.time,myValue = 5);

    The effect that’s being called is just a hidden Slider Control I made with Pseudo Effect Maker.

    The error message I get is this:
    Unable to execute script at line 3. After Effects error: Can not "set value at time" with this property, because the property or a parent property is hidden.

    I have a strong feeling there’s just no way to achieve this. However, I’d be really happy if anyone knows a workaround for this problem.

    Thanks in advance,
    Simon

    Motion Designer
    Website: https://simonheimbuchner.de/

    Simon Heimbuchner replied 7 years, 4 months ago 1 Member · 1 Reply
  • 1 Reply
  • Simon Heimbuchner

    January 1, 2019 at 4:26 pm

    Whoops. I just figured it out myself. Seems like i set it up wrong.

    Basically, I had a few hidden Slider Controls inside a hidden group. The double-hidden setup seemed to be the problem. Once I removed the “invisible” property from the actual Slider Controls, it all worked fine.

    EDIT: Whoops again. The Slider Controls are hidden in the effects panel, but visible in the timeline, once you do the “u u” shortcut.
    Anyone still up for this?

    Motion Designer
    Website: https://simonheimbuchner.de/

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