I can zoom between the two zoom states OK, but as soon as I try a focus the script crashes.
If the
camera crashes, please post the romlog. If there is some other error, please describe it and post any error messages.
What sill thing am I doing? Or is it the new functions?
I'd be surprised if it was related to the new the new functions, they use the regular old set_zoom under the hood, how they arrived at the value shouldn't matter.
I'm not really clear what your script is trying to do, but using set_mf(1) inside half press seems suspect, and I would not expect that to work.
On cameras like g7x, if you want to enter MF starting at the auto focus distance, you could use the native functionality, by clicking left on the d pad when half press is held. Note I would *not* recommend using set_aflock inside half press.