ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Hex Code from text?

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Scott McGee
Re: Hex Code from text?
on Sep 26, 2017 at 10:25:53 am

Bizzarely, as I didn't test it and now need to use this...I got a luminous green as well, but with Dan's new expression I got pink.

txt = 0x0000ff;
r = txt >> 16;
g = (txt & 0x00ff00) >> 8;
b = txt & 0xff;
[r,g,b,255]/255

This strangely works for me.

Dan if you have a minute, is there a reason why the three expressions (Similar) although people have responded that they work, it reacts differently for others...I am scratching my head here.

I only took a stab in the dark by removing the c and just replacing it all with txt and it worked first time.

Bizarre.


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]