Replies: 6 comments 25 replies
-
I tried a button triggering a LUA with vt = ValueTree("data") When the button value change I don't get the ERROR EDIT: From Juce documentation about the ValueTree Class and from the CtrlrValueTreeEditor file, it seems that a ValueTree needs a unique name on construction and a content probably as a LUA table. ValueTree("data") is probably not enough and needs somerhing like saveState, readStade. vt = ValueTree("ValueTreeID") |
Beta Was this translation helpful? Give feedback.
-
Thx Damien, I will look at those. NOW: I just re-opened my simple empty panel and retried and it works! FYI, you don't need to have properties defined; the simple initial assignment statement is working alone as well. |
Beta Was this translation helpful? Give feedback.
-
OK. Now I can build and write a ValueTree with different levels and childs. I'm using toXmlString() to write the ValueTree in a text file.
Could it be that this came later in Juce? Or was it not integrated from Juce into Ctrlr (don't know how this is working, isn't it just adding the Juce library to make the function available in Ctrlr?) |
Beta Was this translation helpful? Give feedback.
-
Example:
|
Beta Was this translation helpful? Give feedback.
-
The only downside of 5.6.23 is that it doesn't catch errors, so is prone to crashing and crashing the host. You'll need to run functions in protected space yourself to avoid this, but that's probably a good practice to get into anyway. |
Beta Was this translation helpful? Give feedback.
-
Lots of stuff still causes crashes. For example try to read a variable with a nil value and put it to a text box, and it crashes the host. eg
This will crash ctrlr and the host if clipboardBank[n].author is nil. |
Beta Was this translation helpful? Give feedback.
-
Using 5.3.201...
This simple statement should work but I get Stack overflow... Any idea?
Beta Was this translation helpful? Give feedback.
All reactions