HISE Logo Forum
    • Categories
    • Register
    • Login

    Dynamic Container - how to use?

    Scheduled Pinned Locked Moved Unsolved Scripting
    1 Posts 1 Posters 50 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • HISEnbergH
      HISEnberg
      last edited by

      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 no getData method, only getValue 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
      	 */
      
      1 Reply Last reply Reply Quote 3
      • First post
        Last post

      25

      Online

      1.9k

      Users

      12.5k

      Topics

      108.6k

      Posts