'Dumb' Lua question

Started by garry23, February 17, 2016, 06:44:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

garry23

I hope David (Lua guru) is watching and can put me out of my misery, once again!

'All' I'm trying to do is access (get) and then change (set) an ML sub/sub menu item, "Shoot", "Advanced Bracket", "Frames" eg I can get to Advanced Bracket, but how do I get/set Frames?

i = menu.get("Shoot", "Advanced Bracket")


I've tried many different things.

Hope some kind person can help?

Walter Schulz

i = menu.get("Advanced Bracket","Frames")


garry23

Walter

Many thanks. I naively followed the language in the Lua 'manual', which says:

get (menu, entry)
    Get the value of some existing ML menu entry
    Parameters:

        menu name of the parent menu ('Audio', 'Expo', 'Overlay', 'Shoot', 'Movie', etc)
        entry name of the menu entry

    Returns:

        the value of the menu entry



garry23

Walter

Once again many thanks for the pointer.

I have successfully got what I wanted to do up and running, i.e. my landscape focus bracketing now has an option to carry out exposure bracketing at each focus step.

Cheers

Garry