Page 1 of 1

[Solved] Determine current status of Instant Color Filters

Posted: 20 Oct 2021 21:24
by klownboy
Hi Don, a numbers of recent scripts are now colorizing tree and list folders on CEA - Changing Locations and for other reasons. Would it be possible to get a new get("CID") for Instant Color Filters? We can toggle ICFs with #1077 and of course there's a toolbar button, but for scripting purposes it would be nice to be able to retrieve the current state of Instant Color Filters to determine if we need to turn them on or turn them off. Thanks.

Re: Determine current status of Instant Color Filters

Posted: 20 Oct 2021 21:33
by highend
Am I missing something, Ken? colorfilter()?

Re: Determine current status of Instant Color Filters

Posted: 20 Oct 2021 23:43
by klownboy
Hi highend. You're not missing anything, but I was. :) No need for a get("CID"); Thanks.
These work fine.

Code: Select all

  if(colorfilter()) {
     colorfilter("");
  }
  else {
    colorfilter("ageC: d;ageM: d>FFFFFF,70B926");
  }
 //or this opposite check
   if (colorfilter() == "") {
    colorfilter("ageC: d;ageM: d>FFFFFF,70B926");
  }
  else {
    Colorfilter("");
  }