Old 07-07-2019, 05:33 PM   #1
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 106
Default Dfk's Item Reader (2.0 beta)

Hey everybody!

Script testing. If you dare.

Description:

This script is designed to assist in the editing and processing of REAPER's items. This script includes a small GUI that shows a layout of information regarding your current selection of media items.

The colorization features of this script only work if your REAPER theme is configured to 'Tint media item backgrounds' to 'track,' 'item,' and 'take' colors. Alternatively, these colorization features should also work if the 'Tint media item waveform peaks' settings are similarly enabled.

In order to perform any of the script-actions such as 'colorize,' 'replace,' 'rename,' or 'quantize,' you must first select items within the GUI list by clicking on them. Items may be unselected at any time by clicking on them again or pressing the 'reset color/selection' button under the 'colorize^' menu; and you can mass-select or deselect all items in the GUI list by pressing Ctrl+a while the GUI has keyboard focus.

The script requires Reaper [5.979], SWS/S&M [2.10.0], and js_ReaScriptAPI [.987].


The script started out as simply me wanting a quick script where I could detect if two items were of the same source, or if they were identical items, on the fly. I've included a handy-dandy toolbar icon with the script as a bonus!

[v1.01]
*Removed Bug when selecting MIDI items
*Buffed documentation
[v2.0]
*Added menus system
*Added display hierachy capabilities
*Added 'search' function
*Added item replacement, item naming, and item quantization capabilities
*Overhauled GUI
[v2.01]
*Added replacement capabilities for groups (limited)
*Added undo points for non-colorization actions (use 'reset color/selection' to undo any colorization actions)
*Buffed documentation
*minor bug removal
Attached Images
File Type: png toolbar_dfk's_item_reader.png (563 Bytes, 23 views)
Attached Files
File Type: lua Dfk Workflow; Item; Reader.lua (45.9 KB, 1 views)

Last edited by Dafarkias; Yesterday at 06:40 AM.
Dafarkias is offline   Reply With Quote
Old 07-10-2019, 01:31 PM   #2
HoJo
Human being with feelings
 
Join Date: Dec 2007
Location: Germany
Posts: 209
Default

Dafarkias,

I really like the idea, but I tried to use and load it in one of my projects and ended up with:
Dfk Workflow; Item; Reader.lua:260: attempt to perform arithmetic on a nil value (local 'q')
Anz idea?

I am on a MacBookPro using 10.13.6

HoJo
HoJo is offline   Reply With Quote
Old 07-10-2019, 03:35 PM   #3
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 106
Default

Quote:
Originally Posted by HoJo View Post
Dafarkias,

I really like the idea, but I tried to use and load it in one of my projects and ended up with:
Dfk Workflow; Item; Reader.lua:260: attempt to perform arithmetic on a nil value (local 'q')
Anz idea?

I am on a MacBookPro using 10.13.6

HoJo
Let me double check the code...

I'll get back to you in a jiffy.

[ADD.] Me thinks I figured it out. Running a test, then I'll post a new.

[ADD.] I think its sorted now, I've updated the file attached to the original post... Please let me know if otherwise?

Last edited by Dafarkias; 07-10-2019 at 04:35 PM.
Dafarkias is offline   Reply With Quote
Old 07-10-2019, 08:08 PM   #4
lachinhan
Human being with feelings
 
lachinhan's Avatar
 
Join Date: Nov 2014
Location: Can Tho - Viet Nam
Posts: 122
Default Update Item management feature

I wish you Update Item management feature, rename item, Search and replace Item .....

Thank you for this
__________________
NK Recording Studio
Email: lachinhan@gmail.com or admin@thuamninhkieu.com
Website:nkpro.top
lachinhan is offline   Reply With Quote
Old 07-10-2019, 09:51 PM   #5
HoJo
Human being with feelings
 
Join Date: Dec 2007
Location: Germany
Posts: 209
Default

Anyway, Dafarkias thanks a lot for this, can't wait to use that
HoJo is offline   Reply With Quote
Old 07-11-2019, 12:31 AM   #6
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 106
Default

Quote:
Originally Posted by lachinhan View Post
I wish you Update Item management feature, rename item, Search and replace Item .....

Thank you for this
Rename item is a great idea...Let me work on that.

Do you mind explaining your search-and-replace idea a little further?

I assume you are referring to a text-based search-field to narrow down the Item Reader's display (also a good idea), but how would 'replace' work? I could add a feature where any item that is highlighted by the script could be replaced by an item of your choosing. Would that work?
Dafarkias is offline   Reply With Quote
Old 07-11-2019, 03:50 AM   #7
lachinhan
Human being with feelings
 
lachinhan's Avatar
 
Join Date: Nov 2014
Location: Can Tho - Viet Nam
Posts: 122
Default

Quote:
Originally Posted by Dafarkias View Post
Rename item is a great idea...Let me work on that.

Do you mind explaining your search-and-replace idea a little further?

I assume you are referring to a text-based search-field to narrow down the Item Reader's display (also a good idea), but how would 'replace' work? I could add a feature where any item that is highlighted by the script could be replaced by an item of your choosing. Would that work?
Pls refer Media Items Tab in Project Bay, and this thread https://forum.cockos.com/showthread.php?t=194414
__________________
NK Recording Studio
Email: lachinhan@gmail.com or admin@thuamninhkieu.com
Website:nkpro.top
lachinhan is offline   Reply With Quote
Old 07-11-2019, 04:00 AM   #8
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 106
Default

Quote:
Originally Posted by lachinhan View Post
Pls refer Media Items Tab in Project Bay, and this thread https://forum.cockos.com/showthread.php?t=194414
Cool script. I guess I'm still a little confused... Are you talking about 'name' replacement, or 'item' replacement? Or both?
Dafarkias is offline   Reply With Quote
Old 07-11-2019, 06:03 AM   #9
lachinhan
Human being with feelings
 
lachinhan's Avatar
 
Join Date: Nov 2014
Location: Can Tho - Viet Nam
Posts: 122
Default

Quote:
Originally Posted by Dafarkias View Post
Cool script. I guess I'm still a little confused... Are you talking about 'name' replacement, or 'item' replacement? Or both?
Both are great! I am grateful to you for this

Cheers!
__________________
NK Recording Studio
Email: lachinhan@gmail.com or admin@thuamninhkieu.com
Website:nkpro.top
lachinhan is offline   Reply With Quote
Old 07-12-2019, 04:41 AM   #10
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 106
Default

Quote:
Originally Posted by lachinhan View Post
Both are great!
I was thinking for name replacement to have 3 different options, according to selection:

*Replace name(s) and include track number(s)

**Replace name(s) and include item number(s)

***Replace name(s)

Whaddya think, am I missing anything blatant or obvious?

[ADD, 7-12]

Working on adding a few new features to the script, but it's gonna take a little time. The code has gotten too muddy so I'm in the process of optimizing before I continue.

I'm trying to add:

*A search bar

*Hierarchy system for display

*Support for edit-groups

*Mass item renaming

*Mass item replacement

[Update, 7/19/2019]

This script has taken me far longer to complete than I ever would have thought, but I'm close to releasing a beta for a 2.0 version.

I've included most everything I mentioned previously^, with exception of group-editing support (which would be an awesome feature): I've decided it to remove it from the current WIP, due to complications.

Other than that, I've overhauled the GUI... and pretty much recoded the entire script along the way.

I hope to upload a 2.0 beta within a few days; once again, sorry about the wait!

I hope y'all enjoy it!

Last edited by Dafarkias; 07-19-2019 at 12:48 PM.
Dafarkias is offline   Reply With Quote
Old 07-13-2019, 05:22 PM   #11
lachinhan
Human being with feelings
 
lachinhan's Avatar
 
Join Date: Nov 2014
Location: Can Tho - Viet Nam
Posts: 122
Default Thank you so much

Thank you so much for your dedication

All the best
__________________
NK Recording Studio
Email: lachinhan@gmail.com or admin@thuamninhkieu.com
Website:nkpro.top
lachinhan is offline   Reply With Quote
Old 07-20-2019, 03:49 PM   #12
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 106
Default v2.0

Version 2.0 beta is out for testing. Please be a little (more) patient for documentation, it's taken me almost every bit of (cough) spare time I've had lately to assemble the script, but my next step is to create documentation and to really crank down on bug-testing.

Any bug-testing is really, really appreciated but please note: do so at your own risk! I'm not aware of any code that should crash your machine, but I haven't done any testing on the script besides from the windows PC on which I've been compiling it.

[Add. 7/21/19]

Video coming soon!

Last edited by Dafarkias; Yesterday at 06:41 AM.
Dafarkias 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:51 AM.


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