Old 07-07-2019, 05:33 PM   #1
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: Southern Vermont
Posts: 864
Default Dfk's Item Reader (v2.21)

Disclaimer:
Test/use my scripts at your own risk. While it is atypical that a REAPER Lua script would damage or harm your hardware/software/data, I will not accept any liability if this were to occur. The download, installation, and operation of my scripting code and its structures are strictly an operative of free will, and signify an agreement to these terms. You are responsible for any damages that might occur, however unlikely. All my scripts are licensed as GPL v.3.

Hey everybody!

Script testing.. Do so at your own risk.

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

In order to perform any of the script-actions--'group,' '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, and you can also select/deselect all items in the GUI list by pressing Ctrl+a while the script GUI has mouse-cursor focus. If you click and hold on a listed item, you can mass select/deselect by dragging mouse cursor either up or down.

NOTE:

In order for the colorize features in this script to operate properly, 'Tint media item background to item color' setting under Appearance>Peaks/Waveforms must be enabled.

FIELD EDITING:

With any number of items selected in your GUI list, right-click while hovering the mouse in the section of the desired value you would like to edit (e.g., track, take name, src. pos., pos., len., group ). All items selected will receive the input of a successful data entry.

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!

Release Log:
[v1.01]
*Removed Bug when selecting MIDI items
*Buffed documentation
[v2.0]
*Added menus system
*Added display hierachy capabilities
*Feature: 'search' function (req. by lachinhan)
*Feature: item replacement, item naming, and item quantization capabilities (req. by lachinhan)
*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
[v2.1]
*Added proper reset for item colors when changing selection and exiting script
*Feature: 'select/deselect all items' action button
*Added color gradient to hierarchy display
*Improved color contrasting of colorization actions and removed previous 'mode' limitations
*Removed bugs from 'search' function and increased utilitarian intelligence
*Removed empty-item bug selection bug
*Simplified copy/replace menu options (same functionality, removed redundancy)
[v2.2]
*Added center-formatting to text
*Added column-width customization and memory (req. by musicbynumbers)
*Added: Highlight items listed in GUI when mouse is hovering over selected items in arrange
*Added: Hold left-click on +/- font button for continuing adjustment
*Feature: colorize action to colorize selected (GUI selection) items
*Feature: right-click to edit selected item(s) data field (track, take name, src, pos, len, group)
*Feature: rename item and include track name
*Improved color contrast of colorization features (again)
*Redesigned and reconstructed GUI
[v2.21]
*Feature: font-style options (req. by JamesPeters)
*Fixed item colorization bug
Attached Images
File Type: png toolbar_dfk's_item_reader.png (563 Bytes, 247 views)
Attached Files
File Type: lua Dfk's Item Reader.lua (73.5 KB, 157 views)
__________________

Support my feature request!

Last edited by Dafarkias; 03-26-2020 at 03:44 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: 253
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: Southern Vermont
Posts: 864
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?
__________________

Support my feature request!

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: 305
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 and ntmusicpro.com
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: 253
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: Southern Vermont
Posts: 864
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?
__________________

Support my feature request!
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: 305
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 and ntmusicpro.com
lachinhan 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:21 AM.


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