League-of-Foundry-Developers / torch

Simple torch module for Foundry VTT
10 stars 16 forks source link

Code for advanced light options? #55

Closed peterprokurist closed 10 months ago

peterprokurist commented 11 months ago

What is the code to set the new AdvancedOptions? Like "Luminosity" or "Contrast"? I've tried a lot, but I can't get any further. Thx. image

lupestro commented 11 months ago

Any names in here should work:

image

Note that everything is lower case and capitalization matters. The values of coloration are numbers - it appears they progress in the same order as the items in the dropdown, so "Adaptive Luminance" is 1, as the second item in the list.

lupestro commented 11 months ago

Let me know if that got you what you needed. If so, I'll close this issue. If you need more, I'll keep an ear open. :)

peterprokurist commented 11 months ago

thanks for the reply! the code works almost perfectly. only one important setting does not work: the animation type. I've tried everything possible, but no matter what I set, the animation doesn't change :-(

licht

peterprokurist commented 11 months ago

Ah, I got it. The value for "type" is not a number but the name of the animation (as it says in the "Customizing light sources" section). BUT: as soon as you want to choose compound names, you have to try. The "Energy Field" is called "energy", the "Bewitching Wave" is called "wave". Now everything works. Thank you all !!!

licht