Roll20API icon indicating copy to clipboard operation
Roll20API copied to clipboard

TokenMod - Directional low light fields are missing

Open Zierman opened this issue 5 years ago • 1 comments

At the moment TokenMod cannot be used to set any directional low light fields.

Fields to add:

  • [ ] has_directional_low_light (boolean)
  • [ ] directional_low_light_center (degrees)
  • [ ] directional_low_light_total (circleSegment)

The fields to add are based on the contents of the Roll20 Help Center's Updated Dynamic Lighting API Support page

Zierman avatar Oct 05 '20 18:10 Zierman

Some Manual Testing

So starting with a token that has been set using the Roll20 Edit Token GUI with the following configuration:

The token starts out looking like this: image

When I try to use the following command: !token-mod --set directional_bright_light_total#10

This is what I see graphically as a result: image

I decided to create a simple script that would set the has_directional_low_light and directional_low_light_total values of a graphic. I found that I was unable to get any graphical changes when adjusting these fields. I verified that the graphic's properties where changed, so adding these fields to TokenMod should work as far as changing the properties on the tokens, but won't actually create any noticeable difference for the end user until the Roll20 app correctly processes these properties when rendering the scene.

Zierman avatar Oct 06 '20 00:10 Zierman