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 .
×
May your rolls be chill this holiday season!
Create a free account

directional_bright_light_total not applied through API

Hello I am doing a token.set('directional_bright_light_total' : 10) for instance then i log the token in API The 10 is correctly set, but it does not show on the screen If i click on the token, go in the "dynamic light" panel and save without any update, the directional light is correctly displayed if i log the token after this manual operation, it has exactly the same values has on my first set through API what am i doing wrong ? It's not a question of refresh because if i move the token after first update through API, the angle of light emission remains to old value
1642439314

Edited 1642440697
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You are doing nothing wrong. That particular attribute is a known and oft-reported API bug. If you set with the API then open and close the panel, it should stick, but that kind of defeats the purpose of automation.