Old 12-13-2018, 04:22 PM   #1
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,171
Default Get envelope target

I may be being a bit dumb here but is there any way of finding out the target for a selected envelope.

I know you can get the selected envelope using GetSelectedEnvelope. But I don't just want the envelope data - I want to be able to work out what it is associated with.

I want to identify what (for example) plugin this envelope is associated with. I know if it's a parameter envelope for a plugin - i can find out the parameter number from the envelope state chunk - but this doesn't identify the actual plugin (as far as I can tell) - that the envelope is attached to.

Anyone know if this is possible? Am I missing something obvious?

Thanks
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is offline   Reply With Quote
Old 12-13-2018, 08:43 PM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

Envelope_GetParentTake/Track
mpl is offline   Reply With Quote
Old 12-14-2018, 01:11 AM   #3
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,171
Default

Quote:
Originally Posted by mpl View Post
Envelope_GetParentTake/Track
Thanks for the reply mpl. I don't think they help identify the actual plugin that a plugin envelope is automating. Unless I'm missing something.

At the moment - I've got searching through each plugin in the chain - checking each parameter for one which name matches with the envelope name. But this is not very efficient. lol.
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is offline   Reply With Quote
Old 12-14-2018, 03:38 AM   #4
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

Quote:
I don't think they help identify the actual plugin that a plugin envelope is automating.
API help:

Quote:
If track envelope, gets the track from the envelope. If FX, indexOutOptional set to FX index, index2OutOptional set to parameter index, otherwise -1.
mpl is offline   Reply With Quote
Old 12-14-2018, 09:24 AM   #5
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,171
Default

Quote:
Originally Posted by mpl View Post
API help:
Woah - how could I miss that. I checked the help but somehow that bit completely passed me by - ie - the second 2/3rds of the description.

Thank you as always!! Now I need to go and sit somewhere quietly and think about what I've done! :|
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 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:09 AM.


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