@a1ex
Sorry to bother you, but I hope you can help; as I feel I'm so close, after reading the links you set me.
I have used config to save my menu set up and proved the savings work.
I then read one setting back in OK, ie at camera restart.
I'm stumbling on how to access a menu item that is more than one whole word.
Here is a snippet of my code.
Focus_Bar_Menu = menu.new
{
parent = "Focus",
name = "Focus Bar",
help = "Shows depth of field info",
depends_on = DEPENDS_ON.LIVEVIEW,
submenu =
{
{
name = "Display",
help = "Switches the focus bar display on & off",
choices = {CON,COFF},
value = CON
},
{
name = "Show Info",
help = "Full shows additional near DoF info",
choices = options2,
value = "Simple" -- start up default
},
{
name = "Unity Blur Multiplier",
help = "Used for focus bar display, ie the red zone",
min = 1,
max = 10,
value = 5 -- start up default
},
{
name = "Diffraction",
help = "Switches the diffraction on & off in the focus bar",
help2 = "Focus Bar total blur is dynamically linked to ML total blur (CoC) setting",
choices = {CON,COFF},
},
{
name = "Focus Bar Multiplier",
help = "Zoom out the focus bar by the specified amount",
help2 = "1 means no zoom. 0 = place FP at focus bar max. -1 = DoF mode",
min = -1,
max = 9,
value = -1 -- start up default
},
{
name = "Near DoF Criterion",
help = "Provides near DoF based on different infinity blurs",
help2 = "Based on the logic that near blur can be larger than the infinity blur",
choices = options,
value = "Defocus" -- start up default
},
{
name = "Focus Stacking",
help = "Only works in DoF mode",
help2 = "Magenta bar shows the amount of overlap re the last image",
choices = {CON,COFF},
value = COFF -- start up default
}
}
}
config.create_from_menu(Focus_Bar_Menu)
if cfg.data ~= nil then
cfg = config:load()
menu.set("Focus Bar","Display",cfg.data.Display)
menu.set("Focus Bar","Focus Stacking",cfg.data."Focus Stacking")
end
Can you put me out of my misery, ie how to handle menus with a space in their title, ie the Focus Stacking menu item: which is obviously wrong.
Cheers
Garry