#system document properties
1 messages · Page 1 of 1 (latest)
@inner dock its possible that v10 will bring a new tool for doing this - but I'm still a bit too early on to know for sure. For the purposes of V9 there is one small improvement I would suggest to you instead of what you're currently doing:
game.system.template is the raw template data, you can access the processed template data in the structure that data would actually appear inside an Actor or Item document using game.system.model
For example game.system.model.Actor.character would be the data structure for a "character" type Actor
If you were, for example, looking for a list of all possible attribute paths, you could do something like:
Object.keys(foundry.utils.flattenObject(game.system.model.Actor.character))
thanks, that should help!