I need to create a script that will toggle between the layer's mask and the grayscale [or rgb] channel: essentially it will check to see which is currently selected, then select the opposite. How do you querry to see what is selected currently, what's the best way to go about doing this? I'd like to tie this script to a function key and speed up my workflow.
Thanks in advance.