Old 06-28-2020, 12:03 PM   #1
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default Is there a Reascript function for renaming FXs?

Hi,

Is there a Reascript function for renaming track FX programmatically?
Eg. rename an EQ VST to 'lowpass' etc..

Thanks,

// h
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-28-2020, 12:05 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Haven't checked, but maybe TrackFX_SetNamedConfigParm ?
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-28-2020, 12:12 PM   #3
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

Allright, I will try it and report back!
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-28-2020, 12:24 PM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Hmm, seems to be more for setting parameters who have a name, but not for renaming an FX-instance.

If no one brings up a solution to this, I'll attempt a function for my Ultraschall-API that does it.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-28-2020, 12:29 PM   #5
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

Do you know if there is a way to find out what all the availavle 'string parmname'
options are? I am looking for clues in other functions.
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-28-2020, 12:31 PM   #6
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Hmm, seems to be more for setting parameters who have a name, but not for renaming an FX-instance.

If no one brings up a solution to this, I'll attempt a function for my Ultraschall-API that does it.
Allright cool!! I have to check out what ultraschall is.
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-28-2020, 12:33 PM   #7
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Link in my signature. In short: Ultraschall-API adds tons of functions to Reaper, who allow you to do things, that are normally hard to do.

Programming rendering, routing, and tons of other things.

api.mespotine.de

I will think into it, but as far as I could see, this should be possible to do to write a function for renaming fx-instances.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-28-2020, 12:37 PM   #8
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

I installed it! Nice!

Yeah, I think being able to rename FX from script would be quite a nice feature.
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-28-2020, 12:58 PM   #9
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Link in my signature. In short: Ultraschall-API adds tons of functions to Reaper, who allow you to do things, that are normally hard to do.

Programming rendering, routing, and tons of other things.

api.mespotine.de

I will think into it, but as far as I could see, this should be possible to do to write a function for renaming fx-instances.
What language would you use for implementing the rename functionality? Is that done
in C?
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-28-2020, 01:01 PM   #10
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

I do it in Lua, as the whole Ultraschall-API is in Lua. Unlike JS-extension or SWS, wo are in CPP.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-28-2020, 01:03 PM   #11
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

I don't understand how that works? How can you add that functionality if it is not in
the Reascript API from the beginning? It's gonna be nice to see how you do it because I
am quite new to Reascript.
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-28-2020, 01:12 PM   #12
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

It is added, when you install it and add the line

Code:
 dofile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua")
into it, which will add my functions to your script.

After that line, you have access to all of these functions and can use them as any other ReaScript-function:
https://mespotin.uber.space/Ultrasch...Functions.html

To give you an idea, of what is possible, just read over this page:

https://mespotin.uber.space/Ultrasch..._Concepts.html

It will act as a tutorial on many concepts I included. But there are many other functions available that are only covered in the US_Api_Functions.html-functionlist.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-29-2020, 12:40 AM   #13
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

Dude, this is awesome. It's gonna take a while for me to get into the API sinde it
is huge but I am really starting to enjoy managing my projects in code!
Can I ask you what the new function is called? ultraschall.renameTrackFX()?
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-29-2020, 08:31 AM   #14
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Not Dude, Mam!

It's not yet called anything. I only finished the get-functions yet and will write the set functions somewhen today.

I hope I can release the update within the next two days.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-29-2020, 12:56 PM   #15
RJHollins
Human being with feelings
 
Join Date: Dec 2011
Posts: 1,517
Default

There is a new 'Rename' script ...

i just can't recall the author at the moment ... but its' from one of the GURU scripters.

Got it via REAPACK.

It will rename all the similar named plugins to the new name in a Track
RJHollins is offline   Reply With Quote
Old 06-30-2020, 02:33 AM   #16
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

Do you mean that it renames a track in the end or does it rename the individual
plugin instances?
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-30-2020, 02:41 AM   #17
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

I think I found it in:

https://github.com/ArchieScript/Arch...ster/index.xml
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-30-2020, 08:07 AM   #18
RJHollins
Human being with feelings
 
Join Date: Dec 2011
Posts: 1,517
Default

Quote:
Originally Posted by dimtok View Post
Do you mean that it renames a track in the end or does it rename the individual
plugin instances?
individual plugins.
RJHollins is offline   Reply With Quote
Old 06-30-2020, 08:12 AM   #19
dimtok
Human being with feelings
 
Join Date: Dec 2019
Location: sthlm, swe
Posts: 63
Default

Quote:
Originally Posted by RJHollins View Post
individual plugins.
Allright! Yes I found it in the package above.
__________________
suck my syntheziser
dimtok is offline   Reply With Quote
Old 06-30-2020, 06:36 PM   #20
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Just in case you still need them: they are up and running. Will be released tomorrow, if nothing stupid happens along the line:

https://forum.cockos.com/showpost.ph...&postcount=529
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-01-2020, 10:17 AM   #21
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Released the new update, so in case you still need them:

Getting the name:
https://mespotin.uber.space/Ultrasch...lternativeName
https://mespotin.uber.space/Ultrasch...lternativeName

Setting the name:
https://mespotin.uber.space/Ultrasch...lternativeName
https://mespotin.uber.space/Ultrasch...lternativeName

Should work on all types of plugins, VST, JS, DX, AU, VideoProcessor. If not, give me a note on that and I'll look into it.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
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 01:01 AM.


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