Old 07-19-2017, 11:10 AM   #1
JerContact
Human being with feelings
 
Join Date: Feb 2017
Posts: 54
Default Scripting Bug on Windows

I'm trying to make subprojects and copy over the mixer routing (since it doesn't do it automatically), the only way to do this is through SWS actions. It works great on the mac, but on PC, it doesn't seem to work. I've run these:

commandID = reaper.NamedCommandLookup("_SWS_LASTPROJTAB")

reaper.Main_OnCommand(commandID, 0) --last project tab

commandID = reaper.NamedCommandLookup("_SWSSNAPSHOT_NEWALL")

reaper.Main_OnCommand(commandID, 0) --New Snapshot on selected track

commandID = reaper.NamedCommandLookup("_SWSSNAPSHOT_COPYALL")

reaper.Main_OnCommand(commandID, 0) --copy snapshot

commandID = reaper.NamedCommandLookup("_SWS_LASTPROJTAB")

reaper.Main_OnCommand(commandID, 0) --last project tab

commandID = reaper.NamedCommandLookup("_SWSSNAPSHOT_PASTE")

reaper.Main_OnCommand(commandID, 0) --paste snapshotend

This does not work on the PC, but if you do each action through the action list and not through script, it works fine...
JerContact is offline   Reply With Quote
Old 07-21-2017, 06:34 AM   #2
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

I am not sure about the workflow that you want to achieve, but I notice that (on Windows):

"_SWSSNAPSHOT_NEWALL" actually refers to "SWS: New snapshot (all tracks)" not only "New Snapshot on selected track".

"_SWS_LASTPROJTAB" switches to the rightmost tab, not the previously-used tab, so running this action twice will not switch between the current project and the subproject.
juliansader 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 09:54 PM.


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