Foen
March 23rd, 2008, 08:46
I am struggling here *sighs* so any help would be appreciated.
I am trying programmatically to change the visibility of a tokeninstance using the setVisible() method, but it seems impervious to my attempts (the token is resolutely visible). I _am_ able to do it manually by using the context menu, but it fails silently when I try to do it from code.
The code is called from combattracker_token.acquireReference among other places, where I'd like to set initial combat tracker tokens to be visible or invisible depending on the circumstances.
BTW, the default state for dropped NPC tokens is 'visible', is that normal?
Any ideas? :confused:
Stuart
Edit: corrected a split-infinitive.
I am trying programmatically to change the visibility of a tokeninstance using the setVisible() method, but it seems impervious to my attempts (the token is resolutely visible). I _am_ able to do it manually by using the context menu, but it fails silently when I try to do it from code.
The code is called from combattracker_token.acquireReference among other places, where I'd like to set initial combat tracker tokens to be visible or invisible depending on the circumstances.
BTW, the default state for dropped NPC tokens is 'visible', is that normal?
Any ideas? :confused:
Stuart
Edit: corrected a split-infinitive.