PDA

View Full Version : Setting token to mask-sensitive visibility?



Moon Wizard
October 30th, 2009, 23:52
Has anybody figured out how to set tokens to mask-sensitive visibility using scripts?

The setVisible() object on tokens appears to only support true or false.

Cheers,
JPG

Foen
November 7th, 2009, 07:06
I think you can do this by passing nil as the 'state' parameter. isVisible always returns true or false (it takes into account the impact of the mask), but setVisible can take true, false or nil.

For my current project, the tracker visibility toggle switches between hidden and mask-sensitive.

Stuart

Moon Wizard
November 8th, 2009, 20:32
Sweet. Exactly what I was looking for.

Hopefully, Doug can add to the documentation.

Cheers,
JPG