Old 03-03-2024, 08:29 AM   #81
WarrenG
Human being with feelings
 
WarrenG's Avatar
 
Join Date: Jan 2020
Location: In the studio at my desk
Posts: 365
Default

Quote:
Originally Posted by Sexan View Post
Hm....will look into it
Thank you
WarrenG is offline   Reply With Quote
Old 03-03-2024, 08:46 AM   #82
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Can you just give me little more info:
What reaper version?
Any scripts running except that?
Is shortcut key set as global?

Btw are you holding down the shortcut key?
Script will run only while shortcut key is held down
Sexan is offline   Reply With Quote
Old 03-03-2024, 09:01 AM   #83
WarrenG
Human being with feelings
 
WarrenG's Avatar
 
Join Date: Jan 2020
Location: In the studio at my desk
Posts: 365
Default

Quote:
Originally Posted by Sexan View Post
Can you just give me little more info:
What reaper version?
Any scripts running except that?
Is shortcut key set as global?

Btw are you holding down the shortcut key?
Script will run only while shortcut key is held down
No other scripts are running.
The script never changes its "State" so it appears as it never loads.
Reaper 7.11 +dev0229.
I did create a shortcut key and set it to Global.
Still No Go.
But thanks for the help in trying to sort it out.

Warren
WarrenG is offline   Reply With Quote
Old 03-03-2024, 09:35 AM   #84
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

No its not supposed to be global (it creates problems).

Are you holding DOWN the shortcut key all the time?
Sexan is offline   Reply With Quote
Old 03-03-2024, 10:02 AM   #85
WarrenG
Human being with feelings
 
WarrenG's Avatar
 
Join Date: Jan 2020
Location: In the studio at my desk
Posts: 365
Default

Quote:
Originally Posted by Sexan View Post
No its not supposed to be global (it creates problems).

Are you holding DOWN the shortcut key all the time?
Got it. I had the Shortcut set to Global

Thank for your help and all the great scripts

Warren
WarrenG is offline   Reply With Quote
Old 03-03-2024, 10:27 AM   #86
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Works now?
Sexan is offline   Reply With Quote
Old 03-03-2024, 10:36 AM   #87
WarrenG
Human being with feelings
 
WarrenG's Avatar
 
Join Date: Jan 2020
Location: In the studio at my desk
Posts: 365
Default

Quote:
Originally Posted by Sexan View Post
Works now?
Yep
Thank you
WarrenG is offline   Reply With Quote
Old 03-03-2024, 01:15 PM   #88
Modular
Human being with feelings
 
Modular's Avatar
 
Join Date: Oct 2009
Location: Manchester
Posts: 282
Default

This looks great Sexan. Going to give it a whirl now.
__________________
www.fortymileswest.co.uk
Modular is offline   Reply With Quote
Old 03-03-2024, 01:24 PM   #89
Modular
Human being with feelings
 
Modular's Avatar
 
Join Date: Oct 2009
Location: Manchester
Posts: 282
Default

Works a treat.
Could you fix the graphical error on the last two buttons?
Attached Images
File Type: png Screenshot 2024-03-03 at 20.22.50.png (65.8 KB, 27 views)
__________________
www.fortymileswest.co.uk
Modular is offline   Reply With Quote
Old 03-03-2024, 01:25 PM   #90
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

Yeah will fix it
Sexan is offline   Reply With Quote
Old 03-03-2024, 02:31 PM   #91
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

fixed, resync reapack
Sexan is offline   Reply With Quote
Old 03-06-2024, 06:23 AM   #92
Suzuki
Human being with feelings
 
Suzuki's Avatar
 
Join Date: Jul 2022
Location: Japan
Posts: 812
Default

Is it possible to update both Mixing Homie and Track Homie so that they open at the mouse cursor position even when the cursor is inside ReaImGui window?
https://forum.cockos.com/showpost.ph...6&postcount=64

For example, something like this for Item Homie
Code:
function GUI()
    if not Key_held() then reaper.ImGui_DestroyContext(ctx) return end
    if next(items) == nil then reaper.ImGui_DestroyContext(ctx) terminateScript = true return end

    local vertical, horizontal = reaper.ImGui_GetMouseWheel(ctx)

    --local tr_name = #items == 1 and buf or "MULTI-TR"
    --reaper.ImGui_PushStyleColor(ctx, reaper.ImGui_Col_WindowBg(), rgba)
    
    reaper.ImGui_PushFont(ctx, font)
    local img_x, img_y = reaper.ImGui_PointConvertNative(ctx, reaper.GetMousePosition())
    reaper.ImGui_SetNextWindowPos(ctx, img_x - 25, img_y - 65, reaper.ImGui_Cond_Once())
    if reaper.ImGui_Begin(ctx, 'FADER', false, reaper.ImGui_WindowFlags_NoDecoration() | reaper.ImGui_WindowFlags_AlwaysAutoResize()) then
instead of this
Code:
local img_x, img_y = reaper.ImGui_PointConvertNative(ctx, reaper.GetMousePosition())
reaper.ImGui_SetNextWindowPos(ctx, img_x - 25, img_y - 65)
function GUI()
    if not Key_held() then return end
    if next(items) == nil then
        terminateScript = true
        return
    end

    local vertical, horizontal = reaper.ImGui_GetMouseWheel(ctx)

    --local tr_name = #items == 1 and buf or "MULTI-TR"
    --reaper.ImGui_PushStyleColor(ctx, reaper.ImGui_Col_WindowBg(), rgba)
    reaper.ImGui_PushFont(ctx, font)
    if reaper.ImGui_Begin(ctx, 'FADER', false, reaper.ImGui_WindowFlags_NoDecoration() | reaper.ImGui_WindowFlags_AlwaysAutoResize()) then
The same goes for Track Homie
Code:
function GUI()
    if not Key_held() then
        return
    end
    if next(tracks) == nil then
        terminateScript = true
        return
    end
    local vol = reaper.GetMediaTrackInfo_Value(tracks[1], 'D_VOL')
    local rv, buf = reaper.GetTrackName(tracks[1])
    local pan_mode = reaper.GetMediaTrackInfo_Value(tracks[1], "I_PANMODE")
    local vertical, horizontal = reaper.ImGui_GetMouseWheel(ctx)

    local tr_name = #tracks == 1 and buf or "MULTI-TR"
    --reaper.ImGui_PushStyleColor(ctx, reaper.ImGui_Col_WindowBg(), rgba)
    reaper.ImGui_PushFont(ctx, font)
    local img_x, img_y = reaper.ImGui_PointConvertNative(ctx, reaper.GetMousePosition())
    reaper.ImGui_SetNextWindowPos(ctx, img_x - 25, img_y - 65, reaper.ImGui_Cond_Once())
Suzuki is offline   Reply With Quote
Old 03-06-2024, 06:37 AM   #93
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,689
Default

sure
Sexan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.