November 17, 2022, 10:24pm
Hello super coders!
I’ve decided to make a separate topic about my LUA “scripting affairs”. The question:
Are there some options (or code editions) to accept offered conditions of the consolidate operation in my so-called “script”? :)) :
May be something like:
Editor:access_action("Editor", "editor-consolidate" (true), (yes), (), (or something))
My goal is to exec the script (consolidate regions) without the dialog:
(I could make two script versions: MIDI Glue & MIDI Glue Dialog)
November 17, 2022, 10:27pm
actions are by definition explicit. An action is performed on the selection, and there are no parameters or options for the operations itself.
(Most actions are menu-items, and hence don’t have any options).
November 17, 2022, 10:33pm
Thanks for super fast reply, Robin! OK! I understand that know nothing… :)) Thanks anyway!
November 17, 2022, 10:35pm
In the past it was a headless operation. I disagreed with
@BenLoftis when he added the dialog and hence did not yet take the time to properly clean things up.
Ideally there would be a separate function that uses the result of the dialog, and that function would be available as Lua binding.
Meanwhile, you probably have to just manually call
compare to ardour/bounce_replace.lua at master · Ardour/ardour · GitHub
PS. in case it helps, the actual C++ code is
ardour/editor_export_audio.cc at c3d4453bdfee954df98892586d5b01286bc7c7fb · Ardour/ardour · GitHub
November 17, 2022, 10:43pm
Robin!! That’s enough for a noob! I’ve just wanted to know that my question is not trivial. You gave me a wide picture! Big great THANK! :)) I’ll try to figure out…ooo))
November 17, 2022, 11:11pm
Sorry, that I forced you to waste the time for a person who simply wants to know/?///
Now - I’ve got a deep answer - thank you & good luck&health!!!
I’ll try not to get any more ))!
December 15, 2022, 11:12pm
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.