11 Replies Latest reply on Oct 8, 2013 10:12 AM by boo radley 2013

    Add H/S/B to current foreground color

    boo radley 2013 Level 3

      Hi, I was wondering if anyone knows of a way to create a script that will add or subtract Hue, Saturation or Brightness by 10% to the current active foreground color. It would be exactly like pulling the sliders in the Color panel.

       

      I've tried the scriptlistener, but it only records the final % number after you've pulled the slider - for example, if the 'B' slider is at 45%, then you run the script listener, then pull the 'B' slider up by 10%, it becomes 55% - and this is all the script listener records. So when I run the script next time, it automatically changes the 'B' value to 55%, instead of bumping it up by 10% from its current state (for example, if it's currently at 27%, then the script should make it 37%). Hopefully the script could also subtract 10%.

       

      I've searched the forums and come across a few close ones, but for some reason none of them seem to work thus far.

       

      Thanks in advance guys