I'm trying to do something like this in a note box:
so that when metadata is loaded, I can refer to them as object.meta.colours.yellow or object.meta.colours["yellow"].
I've tried to set them up the way DataManager sets up the $dataxxx objects, but it's just giving me a long string back as the meta content.
Is there a way to do this so it just works, or will I need to write an addon to the extractMetadata function to change them into the desired format?
Code:
colours = ["yellow":1,
"blue":2,
"red":3]
so that when metadata is loaded, I can refer to them as object.meta.colours.yellow or object.meta.colours["yellow"].
I've tried to set them up the way DataManager sets up the $dataxxx objects, but it's just giving me a long string back as the meta content.
Is there a way to do this so it just works, or will I need to write an addon to the extractMetadata function to change them into the desired format?