ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Photo Filter effect color change from script

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sergio Cabrera
Photo Filter effect color change from script
on Aug 31, 2018 at 11:09:51 pm

Hello.

I need to change a Photo Filter effect color from a script. I'm using this code.

After a few tries with syntax errors I'm not receiving any error messages, but the color is not changing. I think the issue can be in how I'm presenting the RGB colors?

Any help would be appreciated.

var RGBColor = [0, 255, 0, 255]/255;
app.project.item(2).layers[2].effect("Photo Filter").property("Color").setvalue = RGBColor;


Return to posts index

Dan Ebberts
Re: Photo Filter effect color change from script
on Sep 1, 2018 at 1:53:47 am

Do it this way:

.setValue(RGBColor);


Dan



Return to posts index

Sergio Cabrera
Re: Photo Filter effect color change from script
on Sep 1, 2018 at 2:47:17 am

Thank you so much Dan! I'm ashamed, such a dumb error/question, I was just so frustratedly stuck. I promess I'll get better.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]