Quote:
Originally Posted by Rodilab
When I set SWS "Startup actions" option with a ImGui script, script crash.
Basically, all ImGui functions return an error.
Do you know why ?
|
Fixing for next version, thanks!
This is what happens:
Code:
Timer cycle 1 (T=0ms)
|- Script defer callbacks
|- SWS startup action
|- |- Run script, create context
|- ReaImGui frame
|- |- Destroy unused context
Timer cycle 2 (T=30ms)
|- Script defer callbacks
|- |- Invalid ReaImGui context error
|- ReaImGui frame
Another way to trigger the problem:
Code:
reaper.defer(function()
reaper.Main_OnCommand(reaper.NamedCommandLookup('_RS6b4644d86854e10895485f184942fb69ecc26177'), 0)
end)
As a temporary workaround until v0.3 is released, you could do something like GetTime right after the CreateContext call.