Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Lua scripting related requests http://sldev.free.fr/forum/viewtopic.php?f=9&t=1737 |
Page 5 of 10 |
Author: | Henri Beauchamp [ 2017-04-09 20:57:35 ] | ||||||||||||||||||
Post subject: | Re: Lua scripting related requests | ||||||||||||||||||
I found the problem (in HBLuaPieMenu::removeAllSlices(): I forgot the indices and as a result it clears the vectors instead of emptying their string). It will be fixed in next release. In the mean time, avoid reloading a Lua automation script... Note that it won't crash the viewer under Linux (the vectors staying apparently allocated), and that's why I didn't notice the bug sooner... |
Author: | ZaneZimer [ 2017-04-09 21:29:18 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
![]() |
Author: | ZaneZimer [ 2017-04-10 13:31:18 ] |
Post subject: | Re: Lua scripting related requests |
I was pondering a bit last night. Which occurs first, the LuaPieMenuSlice 'command' or the OnLuaPieMenu 'event'? Also, would it be beneficial to have the slice index passed in the 'data' coming to OnLuaPieMenu? |
Author: | Henri Beauchamp [ 2017-04-10 14:36:05 ] | ||||||||||||||||||
Post subject: | Re: Lua scripting related requests | ||||||||||||||||||
|
Author: | ZaneZimer [ 2017-04-10 16:51:49 ] | ||||||||||||||||||
Post subject: | Re: Lua scripting related requests | ||||||||||||||||||
|
Author: | ZaneZimer [ 2017-04-11 22:38:54 ] |
Post subject: | Re: Lua scripting related requests |
Should ApplySkySettings() return true for the pseudo-setting names: "region", "sunrise", "noon", "sunset" and "midnight"? Right now the function call does change the setting but returns false, implying it didn't locate the name. |
Author: | Henri Beauchamp [ 2017-04-11 23:45:15 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
|
Author: | ZaneZimer [ 2017-04-17 16:13:26 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
I have verified the ApplySkySettings() fix. Thanks for getting that in. I'm running into something I can't seem to track down. CallbackAfter() doesn't fire many times. I have a simple function like:
As a side, a reload menu option might be nice to stop and reload the automation script instead of popping the file picker dialog. |
Author: | Henri Beauchamp [ 2017-04-17 16:59:23 ] | ||||||||||||||||||
Post subject: | Re: Lua scripting related requests | ||||||||||||||||||
|
Author: | ZaneZimer [ 2017-04-17 17:12:13 ] | |||||||||
Post subject: | Re: Lua scripting related requests | |||||||||
|
Page 5 of 10 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |