-
June 12th, 2018, 04:32 #1
Setting mask sensitive visibility
How can I set mask sensitive visibility to a token element directly through a token-instance? There's only setVisible true/false.
-
June 12th, 2018, 17:07 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
This function actually takes three values: true, false or nil.
True and false indicate absolute visibility, whereas nil indicates undefined (or mask sensitive visibility).
Regards,
JPG
-
June 12th, 2018, 23:18 #3
-
June 12th, 2018, 23:30 #4
- Join Date
- Jun 2013
- Location
- Isanti, MN
- Posts
- 2,922
-
June 12th, 2018, 23:45 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
Yeah, some of the APIs use or allow nil, but most of them just imply false, zero or empty string.
The only other one that I can think of that has a unique nil value is for token orientation mode on image controls and token instances.
Regards,
JPG
-
June 13th, 2018, 00:59 #6
Nil normally is discouraged as a value absent of its use for 'false' or 'lack of value'. Using nil for the value of 'mask sensitive' is kind of an interesting design choice. It feels more like a hack to get a third value out by gaming the 'everything is an object reference'.
Either way, it's all in order now, the documentation might need an adjustment to show it accepts a nil value as a valid argument for both set/get.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks