Hello Guillermo,
thanks for making the corrections.
For the problem with the variable VER, here's what I do:
-I open 3DS with an empty file,
- run GToolsLightLister, and it works.
- I close GToolsLightLister,
- and I open it again, and there, I have the error message concerning the "ver" variable (as in the previous message)
in fact, it's probably a conflict with a Corona variable, because if I open a Vray file, I don't get this error message.
I found: there is a conflict with the name of the variable you are using in the function "isCoronaHigherThen3"