Dynamic Container - how to use?
-
I'm struggling to wrap my head around this new component, it may be T-shirt time for me but I've been going in circles with it. Please correct my mistakes here, and share an example if you have one!
I dug pretty deep into the Scripting API and source code and I think I understand it but I'm not able to get it to do much.
It looks to me like these are the most important functions:
-
updateContentPropertyInternal()
What property IDs are valid for this method? The documentation mentions updating "the internal content data object" but doesn't specify the property system. -
updateValueFromProcessorConnection()
: This one does compile when I connect it to a Hardcoded Master FX. It looks like it should sync component properties/values to the module parameters. -
setData
should store the configuration JSON data, but there is nogetData
method, onlygetValue
which returns a control value, not the data. Is there an API to retrieve the data?
This next section is just assumptions:
My intuition is I should set the dynamic container's processorID to a Hardcoded MasterFx, but I may be misreading this (it isn't supported in the property editor).
Based on the C++ side it seems to make sense, I think there is an interconnection fromJSON method to convert the Javascript object into a ValueTree structure, so when you call setData, it is not storing JSON directly, it converts HISE's internal ValueTree Format.
There is also something about a
DragContainerHandler
but I am not seeing this on the HISE side of things. From the source:/** A data handler that manages the drag container connection to a FX chain. It performs these steps * * - on value change it will switch the order of the FX processing * - on child add / remove it will call HotswappableProcessor::setEffect() with the `text` property of * the child element (or an empty string if removed). It will also bypass the FX that are not active */
-