Multiple Views in a Plug'n Script plugin ?
-
- KVRer
- 28 posts since 25 Aug, 2018
Aloha,
I've been reading through the docs (there's a lot) and I understand that a .cxx script uses only one .kuiml file (matched by name). Some VST plugins provide multiple functions (such as Echo & Reverb & Flanger) and the VST Interface provides separate controls which display accordingly under User control so they can focus on one set of variables.
Is there a way to do this in Plug'nPlay by either hiding controls or being able to collapse a Group?
Forgive me in advance if this is an obvious question. There's a lot of documentation and I may have missed it.
Greg
I've been reading through the docs (there's a lot) and I understand that a .cxx script uses only one .kuiml file (matched by name). Some VST plugins provide multiple functions (such as Echo & Reverb & Flanger) and the VST Interface provides separate controls which display accordingly under User control so they can focus on one set of variables.
Is there a way to do this in Plug'nPlay by either hiding controls or being able to collapse a Group?
Forgive me in advance if this is an obvious question. There's a lot of documentation and I may have missed it.
Greg
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
If you write your own KUIML, you can group the controls inside a layout cell or another widget and then set the display parameter to "false" to make them disappear from the layout.
If they are contained in a parent widget, you can also use the "visible" attribute (it does not modify the layout but show/hides the content).
If they are contained in a parent widget, you can also use the "visible" attribute (it does not modify the layout but show/hides the content).
-
- KVRist
- 316 posts since 28 May, 2011
Here's an example for you, Greg.
Click on the title to change current section.
Code: Select all
<PARAM id="current_column" type="enumeration" enum_values="Flanger;Delay;Reverb" default="0" />
<INVISIBLE_PARAM_MENU_BUTTON param_id="current_column">
<PARAM_TEXT param_id="current_column" font_weight="bold" />
</INVISIBLE_PARAM_MENU_BUTTON>
<CELL id="cell_flanger">
<TEXT value="flanger controls" />
</CELL>
<CELL id="cell_delay">
<TEXT value="delay controls" />
</CELL>
<CELL id="cell_reverb">
<TEXT value="reverb controls" />
</CELL>
<PARAM_LINK from="current_column" to="cell_flanger.display" formula="x==0" />
<PARAM_LINK from="current_column" to="cell_delay.display" formula="x==1" />
<PARAM_LINK from="current_column" to="cell_reverb.display" formula="x==2" />
-
- KVRer
- Topic Starter
- 28 posts since 25 Aug, 2018
Aloha & Thank you Ilya,
I was starting to modify your GIT sample that protects one knob when another is moved.
But this is closer to what I want to do. I'll test it when I get home from work.
Quick Question:
Can I group controls and put an id on that group containing the controls and will the controls under that group show/hide in the same way:
I have a suspicion that all children nested within a group will still display and that it's required that each control (by id) needs to be to linked to the menu in order to hide/show them.
I was starting to modify your GIT sample that protects one knob when another is moved.
But this is closer to what I want to do. I'll test it when I get home from work.
Quick Question:
Can I group controls and put an id on that group containing the controls and will the controls under that group show/hide in the same way:
Code: Select all
<PARAM_LINK from="current_column" to="group1.display" formula="x==0" />
<PARAM_LINK from="current_column" to="group2.display" formula="x==1" />
<PARAM_LINK from="current_column" to="group3.display" formula="x==2" />-
- KVRist
- 316 posts since 28 May, 2011
Greg, if you hide the cell, all controls inside it will be hidden.
If you need to hide only some controls, you can give each one an id and use PARAM_MULTI_LINK instead.
<PARAM_MULTI_LINK from="current_column" to="control1.display;control2.display" formula="x==0" />
or if you want them just to disappear without altering the layout you can try .visible (or even .opacity) instead of .display
If you need to hide only some controls, you can give each one an id and use PARAM_MULTI_LINK instead.
<PARAM_MULTI_LINK from="current_column" to="control1.display;control2.display" formula="x==0" />
or if you want them just to disappear without altering the layout you can try .visible (or even .opacity) instead of .display
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
-
- KVRer
- Topic Starter
- 28 posts since 25 Aug, 2018
Aloha & Thanks Ilya,
I was playing around with this last night but didn't have time to post in the forum.
I didn't know about the PARAM_MULTI_LINK , so that's extremely helpful.
thanks again.
Greg
I was playing around with this last night but didn't have time to post in the forum.
I didn't know about the PARAM_MULTI_LINK , so that's extremely helpful.
thanks again.
Greg
-
- KVRist
- 316 posts since 28 May, 2011
Greg, you're welcome.
Here's a list of (almost) all KUIML tags:
https://www.bluecataudio.com/Vault/Skin ... index.html
Here's a list of (almost) all KUIML tags:
https://www.bluecataudio.com/Vault/Skin ... index.html