How to load a preset / LrTemplate file into a table variable
Lightroom stores it's settings in preset file called xxx.lrtemplate.
Question: how to load such a file into a local table variable.
I know I can load a file with LrFileUtils.readFile ( path), but then it is just string.
But how can I load it in a table variable?
For example how to load a keyword lrtemplate file into a table variable
s = {
id = "0427FE55-2BD3-4DF3-A68B-336D39F4AB9B",
internalName = "Family",
title = "Family",
type = "KeywordSet",
value = {
shortcut1title = "John",
shortcut2title = "Suzan",
shortcut3title = "Peter",
shortcut4title = "",
shortcut5title = "",
shortcut6title = "",
shortcut7title = "",
shortcut8title = "",
shortcut9title = "",
},
version = 0,
}