Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Is there a way to find a list of all tokens on a given page?

It seems to me that I can't easily find tokens, sometimes because they're off the edge of the map or they're stacked on top of each other. Is there a way to access a list of tokens on a given map, and select them from that list?
1547583521
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This would almost certainly require an API script. And even then I'm not sure about the selection part.
1547590715
GiGs
Pro
Sheet Author
API Scripter
To add to Keith's reply, you definitely can do the selection part with an API script. API scripts are Pro level perk, sadly. 
1547590997
The Aaron
Roll20 Production Team
API Scripter
It depends on what is meant by “selection”. If it is simply find and manipulate, the API can do it. If it is select in the user interface for manipulation with the mouse, it cannot. 
1547591799
GiGs
Pro
Sheet Author
API Scripter
Adam did say "access a list of tokens and select from that list," which reads to me as "present a dropdown box for selection of the token" which should certainly be doable. I guess it depends what he actually wants to do with the selection once done.
1547595219
vÍnce
Pro
Sheet Author
"Forum Champion" Very impressive and well deserved! ;-P
1547596480
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I had assumed selected as in "grabbed on the tabletop". Selecting and acting upon a list of tokens programmatically is certainly possible by the API, and many scripts do it.