Testing for "if Dark"

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
bap
Posts: 33
Joined: Tue Sep 25, 2012 11:26 am

Testing for "if Dark"

Post by bap »

What's the proper way to test for the "If Dark" condition in a script? It doesn't appear to be just a variable you can query (or am I doing something wrong?)

Thanks,

-Bruce
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Testing for "if Dark"

Post by jay (support) »

You can check the isDaylight variable - it's created by the system and is readonly so it's always available.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Locked

Return to “Extending Indigo with Plugins and Python”