Old 05-24-2019, 10:37 AM   #1
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 361
Default reaper.OnPlayButtonEx(ReaProject proj)???

Hey Guys, I'm trying to initate playback of the first opened Project Tab without switching to it. I thought that
Code:
reaper.OnPlayButtonEx(ReaProject proj)
would do the the job but no matter what number I enter as the "ReaProject proj" value, It always only start playback on the frontmost project.

What am I not understanding???
__________________
MP 12 Core 3.46GHZ 48GB OSX10.11.6, MBP 17" 2011 OSX10.12, RME Fireface UFX, MCU,
Reaper 5, DP9, PT 11, Logic Pro X, Bidule, M5 3, BFD2, SD2, Omnisphere, Wave Altiverb, PSP, VB3, Izotope, Scuffham, Soundtoys 5, Slate All Plugins.
lexaproductions is online now   Reply With Quote
Old 05-24-2019, 11:13 AM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,850
Default

ReaProject proj means not a number but a pointer to a Reaper project which you can get with EnumProjects()

e.g. for 2nd tab
Code:
proj2ndTab = reaper.EnumProjects(1,'') -- -1: active project, 0: 1st project tab, etc.
reaper.OnPlayButtonEx(proj2ndTab)

Last edited by nofish; 05-24-2019 at 11:20 AM.
nofish is offline   Reply With Quote
Old 05-24-2019, 11:22 AM   #3
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 361
Default

Woohoo it works!!!

Thanks a lot for this.
__________________
MP 12 Core 3.46GHZ 48GB OSX10.11.6, MBP 17" 2011 OSX10.12, RME Fireface UFX, MCU,
Reaper 5, DP9, PT 11, Logic Pro X, Bidule, M5 3, BFD2, SD2, Omnisphere, Wave Altiverb, PSP, VB3, Izotope, Scuffham, Soundtoys 5, Slate All Plugins.
lexaproductions is online now   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 10:45 AM.


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