Old 12-02-2021, 08:48 AM   #1
mrmong
Human being with feelings
 
Join Date: Oct 2021
Posts: 34
Default How do i select only items that are not in region?

Is there a way or have any one written something that will only select items that are not in a region or

Context is I’m copying sets of items across different projects that have differently named regions which i will need to paste the copied set of items from my master session and then rendering them out. This involved quite a bit of manual moving. Was wondering if theres such a script or a way to just select the stuff that are not in a region so that i can move them in?
mrmong is offline   Reply With Quote
Old 12-02-2021, 10:28 AM   #2
Yanick
Human being with feelings
 
Yanick's Avatar
 
Join Date: May 2018
Location: Moscow, Russia
Posts: 612
Default

Quote:
Originally Posted by mrmong View Post
Is there a way or have any one written something that will only select items that are not in a region or

Context is I’m copying sets of items across different projects that have differently named regions which i will need to paste the copied set of items from my master session and then rendering them out. This involved quite a bit of manual moving. Was wondering if theres such a script or a way to just select the stuff that are not in a region so that i can move them in?
But what if there are several regions?
Yanick is offline   Reply With Quote
Old 12-02-2021, 06:44 PM   #3
mrmong
Human being with feelings
 
Join Date: Oct 2021
Posts: 34
Default

Quote:
Originally Posted by Yanick View Post
But what if there are several regions?
Yep! so the idea i guess is to select items that are outside of any region or at least the first item that do not belong to a region within a session that may have over 800 regions to slowly align..
mrmong is offline   Reply With Quote
Old 12-08-2021, 09:08 AM   #4
mrmong
Human being with feelings
 
Join Date: Oct 2021
Posts: 34
Default

UPDATE 1:

I managed to come up with something that kinda works like this:

1)looping through every single region to check if there is an audio file,
2)if there is a file add it to a table
3)select everything in the table
4) Invert selection
5) This then selects all the items that are not in a region.
6) However when i do a count after the inverted selection it seems to be giving me every item in the session..


This works but i think it could be a lot better as i would like to have more flexibility like being to look for the first item that is not in a region so i could ripple edit and move the files back 1 region

I guess the other way would to be
1) add all items in selected track to table1
2) do the loop and check if there are any items in a region, add to table 2
3) compare the 2 table to get the items that are not in a region then add those items into table 3
4) select items in table 3, somehow get the first item in table3...

I'm not a programmer and i'm having issue trying to get the compare working even after diving into google for hours..
mrmong is offline   Reply With Quote
Old 12-09-2021, 01:04 AM   #5
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,721
Default

You can do a Custom action with these:
•Script: X-Raym_Select all items in current region at edit cursor.lua
•Item: Invert selection
I hope this helps.

Cheers,

Andrew K
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex 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 08:40 PM.


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