Multiple Views in a Plug'n Script plugin ?

Official support for: bluecataudio.com
Post Reply New Topic
RELATED
PRODUCTS

Post

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

Post

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).

Post

Here's an example for you, Greg.

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" />
Click on the title to change current section.

Post

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:

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" />
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.

Post

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

Post

:tu:

Post

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

Post

Greg, you're welcome.

Here's a list of (almost) all KUIML tags:
https://www.bluecataudio.com/Vault/Skin ... index.html

Post Reply

Return to “Blue Cat Audio”