• Editor
  • [Feature Request] Predefined event parameters

It would be really cool if it was possible to define a list of named parameters to an event. These could then be saved in the stringValue as a json encoded string. This way it would merely be an improved visual representation of the event data and wouldn't affect load, save, export, import or the runtimes.

I was thinking something along the lines of having a settings file with the definition for each event type, each being a list of (name, value type, valid range?) items. And when you add a new event you not only enter the name but also select a type in a drop down box.
This way a programmer can for example define a project wide "Sound" event with the parameters needed (name, volume, panning, etc) and a non-programmer could then trigger correctly formatted events with ease.

Related Discussions
...

Hear hear! That would be nice! That would be nice indeed!

BinaryCats wrote

I have suggested something similar in the past, idea was mostly disliked :sleepy:

Let's hope people like it better like this then. Json encoding the data in the string will have very little impact on anything else while giving great flexibility on usage. It's a win-win 🙂

2 months later

I could think of a million practical uses for a feature like that. GO!!! :yes:

I think it's not that it's not useful, it's that it's not portable to different runtimes, especially for binary.
That's what I think is holding this back anyway. That and the thought that some/many kinds of data don't belong with the animation data.

a month later
Pharan wrote

I think it's not that it's not useful, it's that it's not portable to different runtimes, especially for binary.

Well that is just the thing... It is super portable and would work out of the box on all the current runtimes, even in binary. Because it doesn't add anything new to the runtime, it's an editor only feature.

Count0 wrote

we where tempted to write a script to edit the event data in the json. Only thing that held us back was there would be (minimal) editing of the runtime file, to do with loading in events and what not.