 |
|
|
12-17-2019, 08:17 AM
|
#41
|
Human being with feelings
Join Date: Sep 2019
Posts: 628
|
One question. When the script is run a dummy shrunk toolbar pops up in the upper left hand corner of the window and disappears as soon as the drop-down list is closed. Is this how it's designed to work?
I didn't notice it the first couple of times i run the script, maybe due to fascination with this new function. So just to make sure that i didn't accidentally botch the script while editing the toolbar name.
|
|
|
12-17-2019, 11:08 AM
|
#42
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,201
|
Quote:
Originally Posted by Buy One
One question. When the script is run a dummy shrunk toolbar pops up in the upper left hand corner of the window and disappears as soon as the drop-down list is closed. Is this how it's designed to work?
|
Yes, that's how it works.
The popup menu function is available only for graphical scrips. So that dummy window is the actual gui which then runs the dropdown menu at the mouse cursor.
|
|
|
12-17-2019, 12:15 PM
|
#43
|
Human being with feelings
Join Date: Sep 2019
Posts: 628
|
got it, thank you for confirmation
|
|
|
02-01-2020, 03:08 PM
|
#44
|
Human being with feelings
Join Date: Jul 2018
Location: LAITW
Posts: 176
|
This script is great! thanks a lot, bFooz. I got it working fine, but I don't know how to get in Reaper that 'one button menu' like the one you show in your gif (check my imgs. please) All I could get is the normal customized toolbar with an icon for each value.
Pretty sure I'm asking something that has not do with the script, sorry, but I'm a little confused with that (still in 'newbie status' for many Reaper aspects).
Thanks, on any help/clue.
|
|
|
02-02-2020, 05:24 AM
|
#45
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,201
|
Quote:
Originally Posted by CEART
...I don't know how to get in Reaper that 'one button menu' like the one you show in your gif
|
Hi Ceart. If I understand you correctly, you need to add action "bfo - Toolbar dropdown - Floating toolbar x" to the main toolbar where you want that button to reside.
It is a regular action/script, which just happen to open another toolbar in an os floating dropdown menu form.
Here in my picture, I hovered the mouse over the GRID button, which shows the real name of the action that button represents.
|
|
|
02-03-2020, 12:19 AM
|
#46
|
Human being with feelings
Join Date: Jul 2018
Location: LAITW
Posts: 176
|
Quote:
Originally Posted by bFooz
Hi Ceart. If I understand you correctly, you need to add ...
|
Thanks a lot, bFooz, so I'm fine on actions :-). You've helped me understand the full picture here. My foolish misunderstanding was to assume that the script would fulfill its function for everything in Reaper with just a single instance.
Now, plus a further detailed check of gif and instructions, I realize that your script needs to have a specific button for and in order each action, menu item or function can get its drop-down menu, and should be made as many renowned copies as be needed from the original script (bfo_Toolbar dropdown - Floating MIDI toolbar 2.lua) , and finally edit menuName in USER CONFIG.
|
|
|
02-03-2020, 02:47 AM
|
#47
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,201
|
Yes, somehow complicated but I haven't found any simpler way. The best way would be to have it natively.
|
|
|
06-11-2020, 03:54 PM
|
#48
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC USA
Posts: 10,568
|
This seems to be for the Midi Editor only. Is there a version that works in the main window ? Thanks !!!
|
|
|
06-12-2020, 02:23 AM
|
#49
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,201
|
This should work with the main window as well.
You need to specify which of the existing menu you want to show in the dropdown menu
Code:
-- USER CONFIG ----------------------------------------------------------------------------------
menuName = "Floating MIDI toolbar 2"
-- END USER CONFIG -----------------------------------------------------------------------------------------------
If you write
Code:
menuName = "Main file"
the main file menu will be shown. You can then load this particular script into any context, either main or midi editor.
|
|
|
06-12-2020, 02:26 AM
|
#50
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,201
|
I have noticed the script got broken somehow, probably by some changes in recent versions (or just dev versions?).
|
|
|
06-12-2020, 03:07 AM
|
#51
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC USA
Posts: 10,568
|
Yeah, i made those changes but it didnt work.
|
|
|
06-12-2020, 03:54 AM
|
#52
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,201
|
This one works here:
Code:
-- USER CONFIG ----------------------------------------------------------------------------------
menuName = "Main file"
---END USER CONFIG ----------------------------------------------------------------------------------------------
local info = debug.getinfo(1,'S');
local full_script_path = info.source
local script_path = full_script_path:sub(2,-5) -- remove "@" and "file extension" from file name
if reaper.GetOS() == "Win64" or reaper.GetOS() == "Win32" then
package.path = package.path .. ";" .. script_path:match("(.*".."\\"..")") .. "\\?.lua"-- .. "..\\Functions\\?.lua"
else
package.path = package.path .. ";" .. script_path:match("(.*".."/"..")") .. "/?.lua"-- .. "../Functions/?.lua"
end
require("bfo_Toolbar dropdown - functions")
drawMenu(menuName)
You need to use the default name which is outside of the brackets in the menu/toolbar list in Customize menu/toolbars window. That's how they are stored in reaper-menu.ini . Otherwise I have no idea why it wouldn't work.
|
|
|
06-12-2020, 04:26 AM
|
#53
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC USA
Posts: 10,568
|
|
|
|
06-12-2020, 06:00 AM
|
#54
|
Human being with feelings
Join Date: Oct 2017
Location: Russia
Posts: 366
|
|
|
|
06-12-2020, 06:03 AM
|
#55
|
Human being with feelings
Join Date: Oct 2010
Location: Charleston, SC USA
Posts: 10,568
|
Quote:
Originally Posted by Archie
|
Sweet. Thanks Archie !
|
|
|
08-13-2020, 01:33 AM
|
#56
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,788
|
Great script 
But this appears in the corner when i click on the button, is it normal ?
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
08-13-2020, 01:39 AM
|
#57
|
Human being with feelings
Join Date: Dec 2010
Posts: 3,788
|
NVM, this is how it works
__________________
Stop posting huge images, smaller images or thumbnail, it's not rocket science!
|
|
|
05-14-2022, 12:09 PM
|
#58
|
Human being with feelings
Join Date: Sep 2016
Posts: 451
|
Hello, but if I erase the contents of the menu after creating it, does it still work?
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 01:51 AM.
|