Automatic Text Color Adjustment in After Effects

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 29

  • @ilirbeqiri
    @ilirbeqiri 9 месяцев назад +11

    Long time no see, Sergei. Great idea switching colors based on the lightness of the reference layer! The code is a bit long though. A single line would have been enough:
    rgbToHsl("your sampled color")[2] > 0.5 ? [0,0,0,0] : [1,1,1,1];
    You first sample the reference color, convert it from RGB to HSL (hue, saturation, lightness), get the lightness component [2] and compare it against 0.5. If it's greater, return a black color [0,0,0,0] else return white [1,1,1,1]. Don't get me wrong, I'm a great fan, just wanted to show a bit of a shorter way to get the same result. This takes nothing away from your idea. Keep them coming. 👏👏👏And it's great to see you bringing Blender into the mix. It's a great tool and has much to offer to the motion graphics world.

    • @ukramedia
      @ukramedia  9 месяцев назад +3

      Wow! 👏👏👏 Seriously, you're a legend for coming up with this solution. How did I not think of this?!?! It's just so brilliantly simple! Good job on that! I definitely went a bit overboard with my approach there, didn't I? Thanks a ton for sharing this gem with us!

    • @CLWill
      @CLWill 2 месяца назад

      I've spent a bunch of time fiddling with this, and the relationship between Saturation and Luminosity messes with this simpler formula. It does not work for many chosen input colors.
      The issue is that in the HSL model, saturation affects the maximum L value. If you have a 100% saturated color, the max value for L is 50% (.5). So the formula always fails. But L can go all the way to 100% (1.0) if the S value is below 50%.
      I've spent some time trying to come up with a good equation of S & L and just decided to go back to Sergei's formula above, which seems to handle this issue.
      Hope this helps,
      Chris

  • @CJVeloso
    @CJVeloso 9 месяцев назад +3

    Expressions are so powerful - thanks for sharing your knowledge as always, Sergei!

    • @alexflame9383
      @alexflame9383 9 месяцев назад +2

      yes

    • @ukramedia
      @ukramedia  9 месяцев назад +2

      Thanks for your kind words, CJ! Couldn't agree more, expressions are incredibly powerful!

  • @5435234
    @5435234 9 месяцев назад +2

    Very clever, thanks for sharing.

  • @motashaiye
    @motashaiye 9 месяцев назад +4

    On/Off checkbox control is smart, but this smarter.

  • @CatalinGulan
    @CatalinGulan 9 месяцев назад +1

    Simply amazing Sergei. Thank you very much for sharing❤

  • @pubgmobilestreams937
    @pubgmobilestreams937 9 месяцев назад +1

    This is very useful.. Thank you!

    • @ukramedia
      @ukramedia  9 месяцев назад

      Awesome! I'm really glad you found this tutorial helpful. Thanks a bunch for tuning in!

  • @WTFconelRuli
    @WTFconelRuli 24 дня назад

    Very good! Where can I find the audios?

  • @gcbraga
    @gcbraga 6 месяцев назад +1

    man, you are the master

  • @jmricks
    @jmricks 9 месяцев назад +1

    Very smart! Thanks for sharing

    • @ukramedia
      @ukramedia  9 месяцев назад +1

      Thanks for your kind words!

  • @ManexFX
    @ManexFX 9 месяцев назад +1

    Awesome! Thank you

  • @michaelohare390
    @michaelohare390 8 месяцев назад

    Thanks Sergi,
    I noticed that the Fill effects that are applied to the Text layer have big role to play in this. Both the Dark Color (fx) and the Light Color (fx) need to be off. It would not work for me otherwise.

  • @shyammediaworks7110
    @shyammediaworks7110 9 месяцев назад +1

    Great expression. does it work with grey shades also?

    • @ukramedia
      @ukramedia  9 месяцев назад +1

      Thanks for the kind words! Absolutely, this expression works great with grey shades too.

  • @vasily3994
    @vasily3994 9 месяцев назад +1

    just banger!

  • @thinklearndesign7441
    @thinklearndesign7441 5 месяцев назад +1

    Did UKRAMEDIA go out of business? I bought some of their lifetime products a while ago that I cannot access anymore through their download page and cannot get a response through their support email. Unless four days plus is the normal response time. Should I wait a week or a month for them to contact me? If that is the case, they need to hire a support team to answer their customer's requests. Also, I see there hasn't been a video made for this youtube channel in about four months. Can someone help me out? Thanks!

    • @ukramedia
      @ukramedia  5 месяцев назад

      Sorry for the trouble. Your email got lost in the spam shuffle, but I’ve fixed the issue, and you should now have access to all my tools. Again, I apologize for the inconvenience. Thanks for using my tools!

    • @thinklearndesign7441
      @thinklearndesign7441 5 месяцев назад

      @@ukramedia Great! Thank you very much!

    • @thinklearndesign7441
      @thinklearndesign7441 4 месяца назад

      @@ukramedia Hello again, in case there is a spam situation, can I ask you a question here? The issue is that I ran out of room on my C drive for after effects and had to place it in my D drive. Do I still put the JSXBin file in Scripts UI Panel in the C drive for that or does it somehow need to be placed in the D drive somewhere? There is no "Programs" folder in the D drive for me to do that.
      Thanks.

    • @ukramedia
      @ukramedia  4 месяца назад +1

      @@thinklearndesign7441 I just sent you an email. Let me know if you didn't get it. Thanks!

  • @suzelleurrealopezdenava1120
    @suzelleurrealopezdenava1120 3 месяца назад

    does this text effect only work on shapes? or can it be applied to just a random video in the background?

  • @DinuGranaci
    @DinuGranaci 9 месяцев назад +1

    SImple but Genious

    • @ukramedia
      @ukramedia  9 месяцев назад

      As they say, 'The simplest solution is often the best.'