Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 06-12-2018, 11:47 AM   #1
semikid
Human being with feelings
 
Join Date: May 2015
Location: Los Angeles, CA
Posts: 326
Default Select tracks with no items & FX (except tracks with sends, receives and hardware out

Script: select tracks with no items and no fx (except tracks with sends, receives and hardware outputs).lua

This script works great. However, I can't figure out the code well enough to alter it for my liking.

I would like to do this exact script, but remove these same empty tracks with no items, but also have plugins already assigned to them as well.
semikid is offline   Reply With Quote
Old 06-12-2018, 03:33 PM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

I'm confused as to what you want to do. Just remove tracks with no items?

Xenakios/SWS: Select tracks with no items (needs the SWS extension)
Track: Remove tracks
__________________
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
Lokasenna is offline   Reply With Quote
Old 06-12-2018, 05:16 PM   #3
semikid
Human being with feelings
 
Join Date: May 2015
Location: Los Angeles, CA
Posts: 326
Default

Quote:
Originally Posted by Lokasenna View Post
I'm confused as to what you want to do. Just remove tracks with no items?

Xenakios/SWS: Select tracks with no items (needs the SWS extension)
Track: Remove tracks
Not exactly. I want to remove the ones with no items, but they also happened to have FX on them, since I have default FX chains for every track.

So everything the script says in the title except for the "(No FX)" part I want it to not matter if there's FX on the track or not.

So it will still delete the tracks with no items even if they have FX on them.
semikid is offline   Reply With Quote
Old 06-12-2018, 05:43 PM   #4
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Doesn't a custom action using the actions I pasted above work?
__________________
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
Lokasenna is offline   Reply With Quote
Old 06-12-2018, 06:26 PM   #5
semikid
Human being with feelings
 
Join Date: May 2015
Location: Los Angeles, CA
Posts: 326
Default

Quote:
Originally Posted by Lokasenna View Post
Doesn't a custom action using the actions I pasted above work?
Yes that works for me now.

Is there a way to do this with only selected tracks?

As in I want it to run that exact action, but only for a handful of tracks within my project. Not all of them.
semikid is offline   Reply With Quote
Old 06-12-2018, 06:49 PM   #6
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Not with the native actions, no.

I've just uploaded Lokasenna_Select tracks in selection with no items to ReaPack.
__________________
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
Lokasenna is offline   Reply With Quote
Old 06-12-2018, 07:21 PM   #7
semikid
Human being with feelings
 
Join Date: May 2015
Location: Los Angeles, CA
Posts: 326
Default

YOU ARE A BEAUTIFUL HUMAN.

THANK YOU!!!!
semikid is offline   Reply With Quote
Old 06-12-2018, 07:42 PM   #8
semikid
Human being with feelings
 
Join Date: May 2015
Location: Los Angeles, CA
Posts: 326
Default

Another cool tip if anyone wants to do this to clean up their sessions when mixing right away so you don't have excess blank tracks in your project template....

Adding the action: "SWS: Unselect parent(s) of selected folder track(s)" in between allows you to keep your organization of all your used tracks in that folder... So it doesn't delete the parent folder that you need to keep them organized in...

Follow this custom action "Custom: Select tracks in selection with no items and Remove Tracks":

----------------------------
Script: Lokasenna_Select tracks in selection with no items.lua
SWS: Unselect parent(s) of selected folder track(s)
Track: Remove tracks
semikid is offline   Reply With Quote
Old 08-14-2018, 10:25 PM   #9
semikid
Human being with feelings
 
Join Date: May 2015
Location: Los Angeles, CA
Posts: 326
Default

Hey again Lokasenna,

Is it possible making a script that "select only tracks with items out of highlighted tracks selection" as well?

Figured it out in the code, pretty easy since you did the hard work.

If anyone wants this one: https://www.dropbox.com/sh/4czp4zer1...LgJe93sIa?dl=0

All credit goes to Lokasenna of course.

Last edited by semikid; 08-15-2018 at 05:14 PM.
semikid 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 06:30 AM.


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