Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 03-05-2023, 03:45 PM   #1
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default [Done]API for renaming FX instance

Would be great to finally have API for renaming FX instances, because now it has to be done via chunks, which is unstable and pretty dangerous, especially if any changes are going to happen to FX chain state.
Here is how it could look like:
boolean retval = reaper.TrackFX_SetFXName(MediaTrack track, integer fx, string newname)
__________________
DonateSoundCloudAll the REAPER names

Last edited by vitalker; 03-26-2023 at 03:43 AM.
vitalker is online now   Reply With Quote
Old 03-06-2023, 02:24 AM   #2
ManwŰ
Human being with feelings
 
ManwŰ's Avatar
 
Join Date: Aug 2022
Posts: 78
Default

+1
ManwŰ is offline   Reply With Quote
Old 03-07-2023, 02:21 AM   #3
smandrap
Human being with feelings
 
Join Date: Feb 2021
Location: Right here
Posts: 102
Default

+1
smandrap is online now   Reply With Quote
Old 03-07-2023, 05:35 AM   #4
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,207
Default

+1 I also requested this before.
__________________
Some of my Requests : Pre Chain and Post Chain : Midi input reaching take instrument : Alias names for sends : Hide Specific sends on Sends Panel/TCP/MCP : please take care of the small workflow details ...
deeb is offline   Reply With Quote
Old 03-07-2023, 06:09 AM   #5
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

Quote:
Originally Posted by deeb View Post
+1 I also requested this before.
You can link it here
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 03-07-2023, 06:28 AM   #6
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,207
Default

i talked/requested about in API request section.
__________________
Some of my Requests : Pre Chain and Post Chain : Midi input reaching take instrument : Alias names for sends : Hide Specific sends on Sends Panel/TCP/MCP : please take care of the small workflow details ...
deeb is offline   Reply With Quote
Old 03-07-2023, 06:46 AM   #7
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

Quote:
Originally Posted by deeb View Post
i talked/requested about in API request section.
What is that?
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 03-07-2023, 07:23 AM   #8
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,207
Default

Maybe I was clear. Here: https://forum.cockos.com/showthread.php?t=48871
__________________
Some of my Requests : Pre Chain and Post Chain : Midi input reaching take instrument : Alias names for sends : Hide Specific sends on Sends Panel/TCP/MCP : please take care of the small workflow details ...
deeb is offline   Reply With Quote
Old 03-07-2023, 07:31 AM   #9
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

Quote:
Originally Posted by deeb View Post
That's a wish list in different forum and I am not sure the devs are reading it at all.
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 03-11-2023, 02:03 PM   #10
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,115
Default

Quote:
Originally Posted by vitalker View Post
W
Here is how it could look like:
boolean retval = reaper.TrackFX_SetFXName(MediaTrack track, integer fx )
I think it should rather be:

boolean retval = reaper.TrackFX_SetFXName(MediaTrack track, integer fx, string newname)
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper
Bugreports&Docs notes please do here:https://github.com/Ultraschall/ultra...-reaper/issues - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 03-11-2023, 02:41 PM   #11
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
I think it should rather be:

boolean retval = reaper.TrackFX_SetFXName(MediaTrack track, integer fx, string newname)
Yes, you are right. Thanks, updating!
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 03-20-2023, 04:10 PM   #12
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

It's pretty important and messing with track state isn't a good idea.
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 03-21-2023, 12:23 AM   #13
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,207
Default

Yes it is. Sooner or later they will implement this I hope.
__________________
Some of my Requests : Pre Chain and Post Chain : Midi input reaching take instrument : Alias names for sends : Hide Specific sends on Sends Panel/TCP/MCP : please take care of the small workflow details ...
deeb is offline   Reply With Quote
Old 03-24-2023, 04:18 AM   #14
OLSHALOM
Human being with feelings
 
Join Date: Sep 2019
Location: Austria
Posts: 314
Default

+1001

A native api for this would make life easier for a lot of scripters.
OLSHALOM is offline   Reply With Quote
Old 03-24-2023, 05:19 PM   #15
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,216
Default

We'll implement this via Track/TakeFX_SetNamedConfigParm()
Justin is offline   Reply With Quote
Old 03-25-2023, 12:08 AM   #16
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

Quote:
Originally Posted by Justin View Post
We'll implement this via Track/TakeFX_SetNamedConfigParm()
Thank you!
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 03-26-2023, 03:43 AM   #17
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

Added in the latest dev build. See my comment in that thread for more info.
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 05-16-2023, 05:28 AM   #18
DrTT
Human being with feelings
 
Join Date: Jan 2019
Posts: 66
Default

Hello Justin, hello vitalker,


I have installed the 6.79 version and also the recent development builds.

But I have not yet been able to set the FX name of the first effect in the first track via the EEL2-API as follows:
Code:
project = 0;
trackIndex = 0;
effectIndex = 0;
track = GetTrack(project, trackIndex);
isOkay = TrackFX_SetNamedConfigParm(track, effectIndex, "fx_name", "test")
So I am missing something obvious. Any ideas?

Best regards,
DrTT
DrTT is offline   Reply With Quote
Old 05-16-2023, 06:41 AM   #19
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

Quote:
Originally Posted by DrTT View Post
Hello Justin, hello vitalker,


I have installed the 6.79 version and also the recent development builds.

But I have not yet been able to set the FX name of the first effect in the first track via the EEL2-API as follows:
Code:
project = 0;
trackIndex = 0;
effectIndex = 0;
track = GetTrack(project, trackIndex);
isOkay = TrackFX_SetNamedConfigParm(track, effectIndex, "fx_name", "test")
So I am missing something obvious. Any ideas?

Best regards,
DrTT
https://forum.cockos.com/showpost.ph...9&postcount=12
Not sure where did you get that "fx_name" argument.
__________________
DonateSoundCloudAll the REAPER names

Last edited by vitalker; 05-16-2023 at 06:58 AM.
vitalker is online now   Reply With Quote
Old 05-16-2023, 07:20 AM   #20
DrTT
Human being with feelings
 
Join Date: Jan 2019
Posts: 66
Default

Hello vitalker,

thanks for your quick response; it works as expected.

Since renamed_name was not quoted in the release notes, I hadn't thought
that this officially specifies the parameter name but instead just informally
stands for the the new name to be assigned.

So both "fx_name" and "renamed_name" are allowed as actual "parameter_name"
parameters for TrackFX_(G|S)etNamedConfigParam with slightly different
semantics (e.g. you cannot set the "fx_name" because it is read-only)?

Best regards,
DrTT
DrTT is offline   Reply With Quote
Old 05-16-2023, 07:26 AM   #21
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,819
Default

Quote:
Originally Posted by DrTT View Post
Hello vitalker,

thanks for your quick response; it works as expected.

Since renamed_name was not quoted in the release notes, I hadn't thought
that this officially specifies the parameter name but instead just informally
stands for the the new name to be assigned.

So both "fx_name" and "renamed_name" are allowed as actual "parameter_name"
parameters for TrackFX_(G|S)etNamedConfigParam with slightly different
semantics (e.g. you cannot set the "fx_name" because it is read-only)?

Best regards,
DrTT
I don't know why they didn't write it correctly, maybe because you still need to open documentation and will find out it is quoted.
By the way, X-Raym has a great documentation for ReaSript: https://extremraym.com/cloud/reascript-doc/
Yes, fx_name is a pre-aliased name and you can only read it. You can rename FX from FX browser like before.

You can also use GetFXName:
https://extremraym.com/cloud/reascri...ckFX_GetFXName
__________________
DonateSoundCloudAll the REAPER names

Last edited by vitalker; 05-16-2023 at 07:32 AM.
vitalker is online now   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 02:03 AM.


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