Old Yesterday, 05:52 AM   #1
BryanChi
Human being with feelings
 
Join Date: Jan 2019
Location: Taiwan
Posts: 436
Default how to scan user's sample collection for reascript?

Hi,
I'm just wondering if anyone has experience with scanning the user's drive for audio files using Lua?

I'm considering making a new script to enhance the workflow of swapping and stacking media items. It'd give me a huge head start if someone can help me with it.

Thank you!!
BryanChi is offline   Reply With Quote
Old Yesterday, 10:05 PM   #2
carrus2049
Human being with feelings
 
carrus2049's Avatar
 
Join Date: Mar 2023
Location: China
Posts: 22
Default

Happened to make a snippet while ago to do that.

I've only used it once or twice hence it's not fully tested. So let me know if anything is not clearified or could be improved
carrus2049 is offline   Reply With Quote
Old Today, 07:56 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

In case you need an easy way to get all filenames and (sub-)folders, you can use GetAllRecursiveFilesAndSubdirectories in Ultraschall-API. Pass to it the folder you want and it gets all files of all fodlers and subfolders in a handy table:

https://mespotin.uber.space/Ultrasch...Subdirectories
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine 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 05:47 PM.


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