Notifications
Clear all

MetadataUpdater command line

12 Posts
3 Users
1 Reactions
63 Views
(@papopap)
Estimable Member
Joined: 4 years ago
Posts: 59
Topic starter  

Hi,
Is it possible to use MetadataUpdater in command line mode?
I would like to update metadata in Database.db3 using SQL and then update the metadata of unify files using a batch command line script.
TIA.


   
Quote
(@getdunne)
Illustrious Member Admin
Joined: 5 years ago
Posts: 4487
 

@papopap

MetadataUpdater doesn't support command-line arguments, and note that it only works on .unify files, not encrypted .upf files.

Please tell me more about what you're try to to do. I may be able to offer useful suggestions.


   
ReplyQuote
(@papopap)
Estimable Member
Joined: 4 years ago
Posts: 59
Topic starter  

hi,

I' managing all my patches (especially the tags/comments, etc.) in Excel, which allows me to easily keep track of everything.

What I want to do is start with a tab where I export (in SQL) all the rows and columns of my Unify patches. Then, I can verify the consistency because visually, it is very easy to see the attributes of the patches and see if there's some errors. then I can change/add attributes to my patches very easily. in another tab, I create command lines using concatenation formulas for each patch.

This would look something like:

MedataUpdater -comment "comment here" -tag1 "your tag" etc.

at the end, I copy/paste this lines into a cmd file and execute them in batch mode.
It is impossible to do this process in Unify for each patch.
I could do it in SQL, but it is impossible to update the patches directly from the preset database.

Tia.


   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 5 years ago
Posts: 4487
 

@papopap

This will be much easier in future versions of Unify, where the patch database will become the source for all displayed data. However, I understand that you need a solution now.

Two questions:

  1. Are you on Mac or Windows?
  2. What programming tools/languages can you use (if any)?

   
ReplyQuote
(@papopap)
Estimable Member
Joined: 4 years ago
Posts: 59
Topic starter  

I'm using windows 11
programming tools , I can use SQL , Python, or  some other languages like AutoKey
if other languages -> I can use ChatGPT to learn quickly 🙂


   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 5 years ago
Posts: 4487
 

@papopap

You should be able to use Python. Unencrypted (.unify) patch files are basically just XML text files; see https://github.com/pluginguru/unify-batch/blob/main/Documents/Unify-patch-structure.md for details. Everything you need to change is in the <PresetMetadata> tag near the top.

An example of a Python script to modify patches is https://github.com/pluginguru/unify-batch/blob/main/Utilities/batch-modify.py

See also other scripts in that same Utilities folder.

Feel free to ask further questions.


   
ReplyQuote
(@papopap)
Estimable Member
Joined: 4 years ago
Posts: 59
Topic starter  

thank's !


   
ReplyQuote
(@thsve)
MR
Joined: 5 years ago
Posts: 346
 

@papopap 

Hi, I have done quite a lot of programming utilites for Unify using Python, C#, Autohotkey and some other scripting langages. You can see some examples on my Youtube channel, https://youtube.com/playlist?list=PL1USczcC0pbm-_-VeVFuCfKrnYqKSM7R_&si=jdAvAA8K-TfWeVxW. Feel free to contact me if you want to discuss this.

/Thomas

Win 10 and 11/Cubase Pro 12/Unify/Wavelab 8/Vienna Pro 7/Spectrasonics all/NI 13 Ultimate/Izotope MPS2/Serum/Cthulhu/Scaler 2.5/MusicLab guitar vsts/BIAB 2022/TouchOSC/Metagrid Pro etc


   
getdunne reacted
ReplyQuote
(@papopap)
Estimable Member
Joined: 4 years ago
Posts: 59
Topic starter  

I'll try to take a look. thank's again !


   
ReplyQuote
(@thsve)
MR
Joined: 5 years ago
Posts: 346
 

Posted by: @papopap

hi,

I' managing all my patches (especially the tags/comments, etc.) in Excel, which allows me to easily keep track of everything.

What I want to do is start with a tab where I export (in SQL) all the rows and columns of my Unify patches. Then, I can verify the consistency because visually, it is very easy to see the attributes of the patches and see if there's some errors. then I can change/add attributes to my patches very easily. in another tab, I create command lines using concatenation formulas for each patch.

This would look something like:

MedataUpdater -comment "comment here" -tag1 "your tag" etc.

at the end, I copy/paste this lines into a cmd file and execute them in batch mode.
It is impossible to do this process in Unify for each patch.
I could do it in SQL, but it is impossible to update the patches directly from the preset database.

Tia.

I have different python scripts to update Unify patches metadata from a text file that could be used for this. It is relatively easy if you are familiar with python. If you want to explore this further I can "publish" an example. 

 

Win 10 and 11/Cubase Pro 12/Unify/Wavelab 8/Vienna Pro 7/Spectrasonics all/NI 13 Ultimate/Izotope MPS2/Serum/Cthulhu/Scaler 2.5/MusicLab guitar vsts/BIAB 2022/TouchOSC/Metagrid Pro etc


   
ReplyQuote
(@papopap)
Estimable Member
Joined: 4 years ago
Posts: 59
Topic starter  

@thsve yes thank's it helps me .


   
ReplyQuote
(@thsve)
MR
Joined: 5 years ago
Posts: 346
 

@papopap 

Here are the way I've used python to do this: https://www.dropbox.com/scl/fi/odjjabfbmzkfuw1krrab7/Unify-Update-meta-from-text.zip?rlkey=f8t9yh507k2dzmrgm24kku0g5&st=ws7sm8c7&dl=0

See it as an example from an really inexperience Python programmer😊 . I've used this metod a lot so it does what it should. The file contains the scrips used and some short instructions how to use them.

Hope this can help you achieve what you want. Don't hesitate to ask if you need clearification.

This post was modified 3 weeks ago by Thomas Svensson

Win 10 and 11/Cubase Pro 12/Unify/Wavelab 8/Vienna Pro 7/Spectrasonics all/NI 13 Ultimate/Izotope MPS2/Serum/Cthulhu/Scaler 2.5/MusicLab guitar vsts/BIAB 2022/TouchOSC/Metagrid Pro etc


   
ReplyQuote
Share: