Answered
Check if selected area is empty
I am trying to create a script that will be executed based on whether the decision is true. I want to add adjustment curve for each channel particularly (CMYK), only if that color exists on selected layer. It should look like on image below.
Thanks in advanced

