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.
on Jan 1, 2019 at 4:26:00 pm Last Edited By Simon Heimbuchner on Jan 2, 2019 at 8:05:09 am
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?