Old 02-10-2020, 12:12 PM   #1
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 951
Default Simplest way to see if a track is a folder?

Hi gang,

I'm at a loss... is there a simple way to tell if a selected track is a folder or not?

I'm embarrassed to ask

Thanks for any help.

Cheers,

Andrew K
__________________
Cheers,
Andrew K
v6.03+dev0114 - January 14 2020 • Mac 10.12.+ • i7 Quad 2.9GHz • 24GB
Thonex is online now   Reply With Quote
Old 02-10-2020, 12:22 PM   #2
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,670
Default

this returns 1 if it is a folder if I remember correctly
Code:
isfolder = reaper.GetMediaTrackInfo_Value(track, "I_FOLDERDEPTH")
heda is offline   Reply With Quote
Old 02-10-2020, 02:39 PM   #3
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 951
Default

Quote:
Originally Posted by heda View Post
this returns 1 if it is a folder if I remember correctly
Code:
isfolder = reaper.GetMediaTrackInfo_Value(track, "I_FOLDERDEPTH")
Brilliant!!

Thanks so much heda!!

Cheers,

Andrew K
__________________
Cheers,
Andrew K
v6.03+dev0114 - January 14 2020 • Mac 10.12.+ • i7 Quad 2.9GHz • 24GB
Thonex is online now   Reply With Quote
Old 02-10-2020, 03:26 PM   #4
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,315
Default

@Thonex: you should really hang around with us on discord :P
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 02-10-2020, 04:53 PM   #5
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 951
Default

Quote:
Originally Posted by _Stevie_ View Post
@Thonex: you should really hang around with us on discord :P
I know... I know... just need to make a dent in this huge project :O
__________________
Cheers,
Andrew K
v6.03+dev0114 - January 14 2020 • Mac 10.12.+ • i7 Quad 2.9GHz • 24GB
Thonex is online now   Reply With Quote
Old 02-11-2020, 09:17 AM   #6
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,315
Default

My point was: you get 1st class scripting support there :P
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 02-13-2020, 01:42 PM   #7
reapero
Human being with feelings
 
Join Date: Aug 2011
Posts: 282
Default

Whats the channel?
reapero is offline   Reply With Quote
Old 02-13-2020, 09:11 PM   #8
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 951
Default

Quote:
Originally Posted by _Stevie_ View Post
My point was: you get 1st class scripting support there :P
True dat!
__________________
Cheers,
Andrew K
v6.03+dev0114 - January 14 2020 • Mac 10.12.+ • i7 Quad 2.9GHz • 24GB
Thonex is online now   Reply With Quote
Old 02-14-2020, 06:58 AM   #9
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,315
Default

Quote:
Originally Posted by reapero View Post
Whats the channel?
Check HeDa‘s signature for the discord channel!
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ 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:13 PM.


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