Damn I missed that error, just me being dumb
So this version, I have gone back a few steps, then re-included my fades ( I guess this should use the tweening datatype, but for now I’ve left it as strings). I have added a frame delay as I was reading the presets xml to get my included channels (maybe there is another way to do this)
I forgot to mention the windows, that started when I added the boxes example, so I have removed that to try and work out the disappearing presets issue, and this one is weird…
So in the all page, the All_001 exists, in xml, but isn’t picked up by the PresetsNames node, so I was working around this with a dir node, as I’d noticed it before.
The weird thing is, you can make a new all_001 preset, and it shows up in the list, the xml changes and is correct, and will be triggered. But f9 and the PresetsNames node again doesn’t see it again.
When you have made it and it appears in PresetsNames, you can of course load it from HDE, you can also snapshot in the HDE, and again, it disappears on f9.
(I’ve also put a tog edge in on writing, the preset as I realised you could hold the button and it would keep writing, which could lock the file, I dont see any errors on writing any more, I think that was the cause. I have also tried using the update preset example, but getting the preset before updating it, but again no change)
Just seen the new preview, I’ll try that now…
Tidied up, moved to separate documents and referenced for an example of use. Some comments. Its a bit ugly, the transitions need to prettified, (and ideally a gui I guess?) its interesting that non tweenables are ignored except for adding a time delay to the trigger.
Usage points, when on a long fade, altering the widget gets overridden, maybe there could be an abort transition, or I guess setting time to 0? So local tweaking is prioritised.
I remember now that the last gui I made used a dictionary for all presets, and so I added meta data in there for descriptive naming beyond the file name. It also made swapping projects easier ie different venues on a tour, but same show, save as a new name, is there way of changing folders, or saving into a file, if individual would it mind extra fields being added to the xml for meta data and would that be persistent?
Thanks @gregsn this is already pretty useful.
_Channels_PresetEngine_1.02.zip (171.8 KB)
Just watched the vvvvtv and thought I’d make a simple record version. It works, but fades are not dealt with correctly. I think that might be a more involved thing to fix ie in the channels library, and I’m not sure whether it makes sense to do that, as they are still a work in progress my end anyway
Since you now depend on “our” transitions: regarding the parameterization (Turning Point, Dynamics, Max Warmup Duration). Those probably don’t make sense right away…
Here is a patch that tries to shed some light on those mysterious parameters.
Dynamics: 0 = linear, 0.3333 = default, 1 = nuts Turning Point: when to get going into the right direction. 0…1 Max Warmup Duration: in seconds. Tries to avoid situations where we go into the wrong direction for too long
Just watched the vvvvtv and thought I’d make a simple record version. It works, but fades are not dealt with correctly. I think that might be a more involved thing to fix ie in the channels library, and I’m not sure whether it makes sense to do that, as they are still a work in progress my end anyway
Ah, yes thats more like the boxes example. Still doesn’t seem quite right, the values are animated, but seem like they do the delay then switch, unless its the mad setting… :D
Also it displays the parameters twice (which I noticed with the boxes too)
I found this formula earlier this year when working on some image processing shaders, its quite interesting S curve, it doesn’t overshoot except at the very extremes, but can make quite a wide range of curves, its bit like a centre point and a slope, it might be useful.
It came from this thead.
I’m busy most of this week, but I’ll try and investigate more later on
Some mostly cosmetic changes, and I’m working on an OSC preset for resolume, which seems like it will be quite useful. However I have come across an oddity. If I open the channels window the Channels/ChannelHub adds some extra channels that aren’t in the channels window, but are in mine. Is that what is meant happen, in which case, I’ll try and cull them from my gui, or is this an error? Question for @gregsn I think!
Thanks
This is basically working I think now, probably need to make a class to carry all the values around, but it seems functional.
Next up, transitions, can i make my own, and how would I do that? I’ve made a patched a sigmoid function, which I quite like as 2 parameters give you quite a lot of flexibility, but it would be great to understand how to make a function into a transition, I guess is needs a time input ie x in this case which replaces the linear spread in this example TransitionTest.vl (252.6 KB)