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 .
×
Create a free account

Is there a way to access the Alpha Channel (Transparency) of a token through a macro, script, or API?

So, I know the regular way of adding transparency to a token is to download it, put it in your favorite image editor, lower the opacity, then bring it back into the game. However, I was wondering if there's a way to directly access it through the game without having to add another asset to your library. I've got a room with two holes on the ceiling which lead to the level above. I want the players to be able to see these holes, but want it to be clear that the holes are above them, not below them. I also want to be sure the tokens read correctly, which might mean several iterations of opacity adjustment, and I don't want to end up with 3 or 4 copies of this token I'm probably only going to use once cluttering up my library. I realize I can delete it later, but that's besides the point. Basically, I know there's some way to affect the transparency of tokens because that's what the GM layer does. I'm just wondering if there's a way for users with API access to adjust that on a layer-independent, per-token basis.
1599155674
The Aaron
Roll20 Production Team
API Scripter
The API does not have access to the transparency of graphics.  Adjusting in an external editor and uploading the new image is the only way to accomplish this.
1599157045
Kraynic
Pro
Sheet Author
Something you might try is to use a specific tint color for above or below.  If you are consistent with the tint scheme, then your players should find it easy to adapt.