01-19-2017, 09:29 AM
|
#1 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
So I got the impression that you folks found Radial Menu pretty exciting. Prepare to need a new pair of underwear.
![]() We've got custom colors. We've got adjustable everything. We've got context sensitive menus. We've got a pile of different action modes. We've got a sexy new setup script for getting it all, er, set up. Oh, and this: ![]() Yeah. That thing that Dora tells the fox not to do. Presenting... Radial Menu 2 This time it's personal. Ized. Personalized. This time it's per.... You get the idea. Getting Started: Not everyone likes as much text as I do. If that's you, here! Have a video! Features:
Installation:
Instructions:
Shortcut key restrictions: Because of how the script figures out what key you're holding, there are a few rules you'll have to follow.
Notes:
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate Last edited by Lokasenna; 04-30-2017 at 10:12 PM. |
|
|
01-19-2017, 09:35 AM
|
#2 |
|
Human being with feelings
Join Date: Mar 2013
Posts: 241
|
Wha !!
Awesome Lokasenna, as usual ![]() Just a quick question, is it possible to use this script in order to launch functions in another script ? |
|
|
01-19-2017, 09:37 AM
|
#3 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
The API function I'm using doesn't work with scripts. I'll look, but I don't think there's a different function that would. Also, I just found a typo that kept the script from actually storing your actions. Fixing now. Also also, adding actions to submenus was putting the label on the wrong item. Fixed as well. Apparently I write code the same way I write forum/FB posts - type it out, post it, then have to go back and edit a billion tiny mistakes after the fact. :/
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate Last edited by Lokasenna; 01-19-2017 at 09:50 AM. |
|
|
01-19-2017, 10:12 AM
|
#4 | |
|
Human being with feelings
Join Date: Mar 2013
Posts: 241
|
Quote:
![]() Regarding my question, don't worry about that, I've found another way around for my own script ![]() And now, I'm thinking about all the other cool things I can do with your Radial Menu ! Once again, thank you for all your hard work, it's really useful to me, you can't even imagine
|
|
|
|
01-19-2017, 10:34 AM
|
#5 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
There is my buddy!!!! Generous donation incoming!
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-19-2017, 10:35 AM
|
#6 | |
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 5,583
|
Quote:
Code:
local userinput = "_RSf9af5a881a603f63b4ac8574e6736996fc85eaf5" -- local userinput = 1234 local runtime_id = reaper.NamedCommandLookup(userinput) if runtime_id > 0 then -- if the script/action is loaded reaper.Main_OnCommand(runtime_id, 0) end
__________________
🇨🇦 Donate (PayPal) | Sponsor (GitHub) | The Endless Journey (Keyboard Ensemble) ReaPack, a package manager for REAPER | SWS 2.14 is now available in ReaPack Developer tools: Lua profiler | Interactive ReaScript | ReaPack Editor | ReaImGui |
|
|
|
01-19-2017, 11:35 AM
|
#7 |
|
Human being with feelings
Join Date: Dec 2016
Posts: 378
|
What a great idea, and well executed. Should be default in Reaper.
|
|
|
01-19-2017, 12:00 PM
|
#8 | |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Quote:
Well, and if the drawing functions were a bit more precise. Some of those corners are a bit messy.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
|
01-19-2017, 12:03 PM
|
#9 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
there is a bug when there are less action (buttons),script crashes :
Code:
473: attempt to index a nil value (field '?') Code:
local act = mnu_arr[cur_depth][mnu_clicked].act
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi Last edited by Sexan; 01-19-2017 at 12:10 PM. |
|
|
01-19-2017, 12:12 PM
|
#10 | |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Updated to work with custom actions and other scripts. Thanks for the heads up, @cfillion.
Quote:
Code:
Msg("cur_depth = "..tostring(cur_depth).."mnu_clicked = "..tostring(mnu_clicked)
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
|
01-19-2017, 12:18 PM
|
#11 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
Code:
cur_depth = 1mnu_clicked = 7 this is all I've trimmed the cool menu: Code:
0 7 'terrible' 'menu 8' 1 0 'cool 0' '' 1 1 'cool 1' '' 1 2 'cool 2' '' 2 0 'neat 0' '' Nothing else is modified Btw would it be too much if I ask for release key activate function ? I mean I've already added it (its 3 lines of code) to be optional in the main release code (not to modify it every time when I need to download it again)?(this is not causing this above,I have two versions this bug is on vanilla code) EDIT:Important info, this happens if you click in the middle
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi Last edited by Sexan; 01-19-2017 at 12:30 PM. |
|
|
01-19-2017, 12:39 PM
|
#12 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Found the bug, it wasn't looking at the right table for "how many buttons do I have right now?". Should be fixed now, along with a similar bug for having more than 8 buttons.
As for running the action on release, no sweat. I'll add it to the list.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
01-19-2017, 12:40 PM
|
#13 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
I've fix it :
changed this line: Code:
local mnu_clicked = mouse_mnu % #mnu_arr Code:
local mnu_clicked = mouse_mnu % #mnu_arr[cur_depth]
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-19-2017, 12:58 PM
|
#14 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
Also its not that it bothers me , its a really great feature for even faster access of everything but on other hand it triggers unwanted commands,but just want to know from coding point of view:
why is the center considered as last button? In main menu it is awesome!!!!! but when you enter a sub menu and click center (considering thats how you get back to main menu) it activates last button. If you wanna fix this (if its not intentional) please keep it in the main menu !!
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-19-2017, 01:02 PM
|
#15 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
It's not meant to do that; in theory, anywhere within 32px of center should be a dead zone. I'll have a look.
Edit: I have two variables, mouse_mnu and mnu_clicked that track what the mouse is over. mouse_mnu was respecting the dead zone, but that wasn't being passed on to mnu_clicked. Fixing it now, because it is technically a bug. As for keeping it on the main menu; I don't understand the benefit. How does it let you go faster? What if I made it so that pressing + releasing the keyboard key without moving the mouse automatically ran the last action you had clicked?
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate Last edited by Lokasenna; 01-19-2017 at 01:12 PM. |
|
|
01-19-2017, 01:10 PM
|
#16 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
or maybe add additional center button in main menu, its a great bug
do not want to lose this!!!
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-19-2017, 02:17 PM
|
#17 |
|
Human being with feelings
Join Date: Jun 2009
Location: South, UK
Posts: 14,424
|
awesome!
thanks!Will check it out/donate etc soon!
__________________
subproject FRs click here note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music. |
|
|
01-19-2017, 05:14 PM
|
#18 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
Well it was a menu dead center where you "click" - "left-right-up-down", less movement than others
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-19-2017, 06:12 PM
|
#19 |
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 11,147
|
This kind of thing is very popular in graphics apps, very interesting to have made something for audio software, I'm sure it can be useful !
__________________
Free ReaScripts - Premium Scripts - Custom Scripts Dev - Learn ReaScript - XR Theme - Stash Files - ReaLinks - ReaComics - Donation |
|
|
01-19-2017, 11:46 PM
|
#20 |
|
Human being with feelings
Join Date: Aug 2006
Location: Berlin
Posts: 11,991
|
Looking mighty fine. Ideal for setting up Loudness submenu stuff, scripts and edit functions.
If you enter nothing in the action ID field by just leaving it empty, a script error pops up: Code:
454: bad argument #1 to 'sub' (string expected, got nil) Hmm. I'll probably try to add a colour for each field for the mouse-over. If a submenu is called, the submenu could use its own background and non-mouse-over colour too. Might be necessary to set something up ahead of time in the script. That way you have another layer of visual feedback. Perhaps more code monkeys can jump in. To summarize the ideas and a couple of more:
Fascinating how whiny users can spiral out of control, eh ?
__________________
Using Latch Preview (Video) - Faderport 16 setup for CSI 1.1 , CSI 3.10 Website "My ego comes pre-shrunk" - Randy Thom |
|
|
01-20-2017, 02:24 AM
|
#21 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
I'm getting uncomfortable with FR bu last thing I want here is context sensitivity.I 've done it with demo script but here I cant modify it (I do't know how to implement it here). The easiest way to do it is to have section in txt file that will be triggerd when context is cought "tcp" "arrange' item etc, and a global option "context"' if that option is disabled then use normal table for all contexts
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-20-2017, 02:40 AM
|
#22 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
Also adding more buttons from setup would be cool (add one more section in F1 where you enter a number and it creates that many menus autonamed menu 1-number you entered) and also delete button option
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-20-2017, 03:59 AM
|
#23 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
Here I've added adding more buttons from F1 menu :
Code:
local defstr = table.concat(col_main, " ")..","..table.concat(col_hover, " ")..","..table.concat(col_bg, " ")..",".."0"..",".."a or m"
-- added 4th and 5th options for adding menus (number of menus and menu type)
local retval, retstr = reaper.GetUserInputs("Settings", 5, "Main RGBA (0 255):,Hover RGBA:,BG RGBA (requires a restart):,Add Menus,Menu Type,extrawidth=24", defstr)
if retval then
local col_arr = {string.match(retstr, "([^,]+),([^,]+),([^,]+),([^,]+),([^,]+)")}
col_main = {string.match(col_arr[1], "(%d+)%s+(%d+)%s+(%d+)%s+(%d+)")}
col_hover = {string.match(col_arr[2], "(%d+)%s+(%d+)%s+(%d+)%s+(%d+)")}
col_bg = {string.match(col_arr[3], "(%d+)%s+(%d+)%s+(%d+)%s+(%d+)")}
--- if number of menu is added (differrent than 0)
if string.match(col_arr[4], "(%d+)") ~= "0" then
-- save all entrys ( current open menu , number or menus to add, menu type (action or submen)
new_buttons = {cur_depth, string.match(col_arr[4], "(%d+)"), string.match(col_arr[5],"(%a+)")}
-- to how many buttons were entered
for i = 1 , new_buttons[2] do
-- if new menu is action
if new_buttons[3] == "a" then
-- set action to nil and label is set to "action" + last menu + 1
newA = { act = "" , lbl = "Action "..(#mnu_arr[new_buttons[1]]+ 1) }
-- add new button to existing table
mnu_arr[new_buttons[1]][#mnu_arr[new_buttons[1]]+1] = newA
-- if new menu is menu/submenu
elseif new_buttons[3] == "m" then
-- allow creating submenus only in main menu
if cur_depth == 0 then
-- new menu/submenu
newM = { act = "menu "..(#mnu_arr[new_buttons[1]]+2), lbl = "Menu "..(#mnu_arr[new_buttons[1]]+2) }
-- new action
newA = { act = "" , lbl = "Menu "..(#mnu_arr[new_buttons[1]]+2) }
-- add new menu entry at current menu
mnu_arr[new_buttons[1]][#mnu_arr[new_buttons[1]]+1] = newM
-- add one new action in that menu (so it is not empty)
mnu_arr[#mnu_arr+1] = { [0] = newA }
end
end
end
end
end
![]() It can add actions or menus (menu type "a" for action "m" for menu), menus can be only created if we are in main menu, if in sub menu only actions can be created (it will discare if you enter menu type "m" nothing will happen)
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi Last edited by Sexan; 01-20-2017 at 06:01 AM. |
|
|
01-20-2017, 06:33 AM
|
#24 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
I'm going to have port this over to my other GUI code just to make a proper Options menu. Or maybe a separate "Setup" script... hmm...
On the plus side, I just realized that scripts can call the OS's "choose a color..." box.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate Last edited by Lokasenna; 01-20-2017 at 06:43 AM. |
|
|
01-20-2017, 06:46 AM
|
#25 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
What kind of options are we talking about ? checkboxes ? maybe add F2 for second option window (one for global settings other for adding or whatever) ? or like you sayed separate script that would open on F1 (not sure is it possible to work that way)
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-20-2017, 07:15 AM
|
#26 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
I can actually reopen the window with different settings, so Setup mode will just make it wider and add a couple of tabs - one for all of the current button's settings and another tab for global stuff like Shape.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
01-20-2017, 02:49 PM
|
#27 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
Ok I've found perfect solution for dead center menu that I very much love ,option to set center menu:
the code that drives it (also fixed that issue where center was always selecting last menu like you sayed) Code:
if mouse_r < 32 then
if cur_depth ~= 0 then
mouse_mnu = -1 mnu_clicked = -1
else
if def_center_menu then
mouse_mnu , mnu_clicked = def_center_menu,def_center_menu
else
mouse_mnu = -1 mnu_clicked = -1
end
end
else
mnu_clicked = mouse_mnu % (#mnu_arr[cur_depth] + 1)
end
![]() I'm weird I know but I like meoh and btw ![]() its little cpu hogy edit: nevermind simple fix Code:
if mouse_mnu ~= last_mouse_mnu then draw_mnu() last_mouse_mnu = mouse_mnu end
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi Last edited by Sexan; 01-20-2017 at 04:21 PM. |
|
|
01-20-2017, 08:18 PM
|
#28 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
I actually tried that trick to reduce CPU usage ages ago but couldn't make it work. Apparently you can only do that if you aren't using ANY of the gfx.drawsomething; as soon as you draw one thing, it blanks the canvas.
The CPU usage is probably because each button is calling gfx.arc about 200 times to fill in the middle. I think I've come up with a more efficient algorithm, but I'll add your "do we need to redraw yet?" code as well. Edit: The arc function isn't accurate enough to draw these buttons nicely, and it just gets worse when I try to do it more efficiently. I might go with a different shape for the buttons altogether. I've also added a center button for any menu you want to put it on, just by holding the left button in the middle like you do with the rest of them. That'll be in the same update as the CPU stuff once I sort that out.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate Last edited by Lokasenna; 01-20-2017 at 10:34 PM. |
|
|
01-21-2017, 08:07 AM
|
#29 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
This is going to be some really ...REALLY exciting shit when its finished!
Toggle states, beautifying a little bit and something special ![]() ![]() in draw_mnu() for toggle Code:
----- toggle state color
if string.sub(str.act, 1, 4) ~= "menu" and str.act ~= "" then
local action = string.match(str.act, "(%d+)")
local state = reaper.GetToggleCommandState(action)
if state ~= nil then
if state == 1 then
color = col_on
end
end
end
draw_ring_section(i + k, mnu_adj, rc, rd, ox, oy, 0.05, fill, color)
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi Last edited by Sexan; 01-21-2017 at 08:45 AM. |
|
|
01-21-2017, 08:26 AM
|
#30 |
|
Human being with feelings
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
|
Amazing ! Can't wait !
|
|
|
01-21-2017, 09:10 AM
|
#31 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Updated.
Reduced the CPU usage, added a center button if you want (in setup, click and hold in the middle), toggle actions will light up the button as in Sexan's .gif above, various bug fixes.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
01-21-2017, 09:13 AM
|
#32 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
there is an error in line 486 : atempting to to index a nil value field ?
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-21-2017, 09:27 AM
|
#33 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Yeah, I think I just found the same thing. Updated again.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
|
01-21-2017, 09:38 AM
|
#34 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
Looking awesome!
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-21-2017, 09:54 AM
|
#35 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
refreshed the txt now it works, but you still have error (at least me)
Code:
if mouse_r < ((cur_depth == 0 and mnu_arr[0][-1].lbl ~= "") and 48 or 16) then mnu_clicked = -1 end Code:
mnu_arr[0][0]
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi Last edited by Sexan; 01-21-2017 at 09:59 AM. |
|
|
01-21-2017, 10:05 AM
|
#36 |
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
That line is checking to see if there's a middle button, though, so it needs [-1]. It's just giving an error because the code goes straight to "give me [-1]'s label!" without seeing if [-1] is there first. Working on it.
Edit: Updated again, should be fixed.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate Last edited by Lokasenna; 01-21-2017 at 10:12 AM. |
|
|
01-21-2017, 10:37 AM
|
#37 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
Yeah great!
anyway here is the function for activate on release (that I've constantly put in new versions) Code:
function on_release()
if mouse_act then
if string.sub(mouse_act, 1, 4) ~= "menu" and mouse_act ~= '' then
reaper.Main_OnCommand(mouse_act, 0)
end
end
end
Code:
mnu_clicked = mouse_mnu % (#mnu_arr[cur_depth] + 1) mouse_act = mnu_arr[cur_depth][mnu_clicked].act ----------- here if mouse_r < ((cur_depth == 0 and mnu_arr[0][0].lbl ~= "") and 48 or 16) then mnu_clicked = -1 end
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi Last edited by Sexan; 01-21-2017 at 03:40 PM. |
|
|
01-21-2017, 11:24 AM
|
#38 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
the volume thing... cant figure it out :
Code:
if hold == true then
local tr = reaper.GetSelectedTrack(0,0)
cur_vol = reaper.GetMediaTrackInfo_Value(tr,"D_VOL")
mx, my = reaper.GetMousePosition()
cur_pos = my - ly -- ly is last reaper.GetMousePosition() so it starts counting from 0
end
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi Last edited by Sexan; 01-21-2017 at 12:49 PM. |
|
|
01-21-2017, 03:39 PM
|
#39 |
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 5,141
|
making click and on_release to work together:
Code:
else
--Msg("attempting action "..act)
reaper.Main_OnCommand(act, 0)
clicked = act
--cur_depth = 0 -- i don like switching menus while clicking when having on_release to activate actions
end
Code:
-- Figure out what option the mouse is over
if mouse_angle < 0 then mouse_angle = mouse_angle + 2 end
mouse_mnu = math.floor(mouse_angle / mnu_adj + 0.5)
if mouse_mnu == (#mnu_arr[cur_depth] + 1) then mouse_mnu = 0 end
mnu_clicked = mouse_mnu % (#mnu_arr[cur_depth] + 1)
mouse_act = mnu_arr[cur_depth][mnu_clicked].act
if clicked == mouse_act then
mouse_act = nil
end
if mouse_r < ((cur_depth == 0 and mnu_arr[0][0].lbl ~= "") and 48 or 16) then mnu_clicked = -1 end
__________________
My Scripts and ReaPack link | Virtual Tracks (ProTools Playlist/TrackVersions) | 🛸Area(51) Selection LUA Script | 🍝ReaSpaghetti Visual Scripter | 👻ParaNormal FX Router | 🥧 Pie Menu 3000 | ►Donation PayPal ☕️Ko-fi |
|
|
01-21-2017, 03:47 PM
|
#40 |
|
Human being with feelings
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
|
Any estimated release of Radial Menu ?
Will it be available through ReaPack ? Can't wait to try t out .. Seems a really revolutionary concept:0) |
|
|
![]() |
| Thread Tools | |
|
|