Hey,
did somebody find a way to readout stored preset values, e.g. I stored a Color preset and want to get all stores Attribute values inside my lua code?
Maybe someone has a solution.
Thanks in advance!
Hey,
did somebody find a way to readout stored preset values, e.g. I stored a Color preset and want to get all stores Attribute values inside my lua code?
Maybe someone has a solution.
Thanks in advance!
I Have not dug into this but perhaps the Preset Pool Dataobject might work? On the surface it looks like you get back a table of PresetDataObjects and I'm not sure if you can get the Data out of this.
Using the heavy hammer I'm probably just load the data into blind for my selected objects and iterate through my selection, but as always I'm sure there is a much easier way.
How would you do the second one?
This might be something I look at next but looking through system_test_framework.lua I see some functions that might be helpful.
Then use SelectionFirst() and SelectionNext() to iterate through your selection grabbing the "phaser values".
No idea yet how or if this will work but looks promising.
Again, probably a much easier way to just peer into the data in a datapool object but I don't know. There are also examples of testing Pool items for equality but I'll need to read through them to understand.
Haven't had much time lately but hope to get back to the brute forcing soon.
I made a stub entry in the wiki https://github.com/hossimo/GMA3Plugins/wiki/GetProgPhaser
Less than ideal but I kind of get how GetProgPhaser() could be helpful.
One day I'll take a look at the preset objects, there must be info in there.
The actual data in a preset object (or a cue-part object) may be many thousands of values and is stored as one compressed data block, thus not browsable via the regular object hierarchy and object properties.
You may however extract the content as a nested table, via the GetPresetData function:
local content_table = GetPresetData(myobject)
Yeah, I tryed that and now finally got it to work properly!
Thanks!!!!!