Search found 5 matches

by mienda
July 3rd, 2014, 1:44 am
Forum: Expressions Library
Topic: How rgbToHsl really works ?
Replies: 4
Views: 25149

Re: How rgbToHsl really works ?

Hi Dan, I think it works now. You can find below the project, I use AE cs6 (in french) but I think it's ok for the expressions. I use a lot the color picker for color grading cell Animation to match perfectly with the backgrounds. And often everything is pre-composed so to have an "external&quo...
by mienda
July 2nd, 2014, 3:31 am
Forum: Expressions Library
Topic: How rgbToHsl really works ?
Replies: 4
Views: 25149

Re: How rgbToHsl really works ?

Hi Dan, thanks for your reply. You right, so I tried an other operation. This one is ok only for a pure red sample: L0= Math.round ( (Math.max(rgb[0],rgb[1],rgb[2]) + Math.min(rgb[0],rgb[1],rgb[2]) /2)*100) And these one give me the same good result but only on a grayscale sample! L1= Math.round(50*...
by mienda
July 1st, 2014, 7:22 am
Forum: Expressions Library
Topic: How rgbToHsl really works ?
Replies: 4
Views: 25149

How rgbToHsl really works ?

Hi I spent lot of time to get luma value from a rgb color. I get my reference value for HSL in the info panel, I just have to put the mouse on the right color. for example: if the rgb color is a gray at 30% (0.3020 , 0.3020 , 0.3020) in decimal. the results of this expression is: rgbToHsl(0.3020 , 0...
by mienda
May 28th, 2014, 7:58 am
Forum: Scripts Discussion
Topic: Why my animation preset is applied on the wrong layer
Replies: 2
Views: 9346

Why my animation preset is applied on the wrong layer

I wrote this script below : I want to duplicate the selected layer twice and apply on the first copy a blending mode and an animation preset. Then move both copies in a pre-comp. var comp = app.project.activeItem; var ffx = "path/BlurLuma.ffx"; if(comp && comp.selectedLayers.length...