1.Set focus on multiple cameras at once.I have made it work with one camera.Tried to connect 2 cameras and play with set_aflock and set_focus and only one camera was affected.
How are you trying to do this?
With multicam, you can execute arbitrary lua code on all cameras by using
!mc:cmd('call ... your lua code')
If you want to see the status (including return values of your code) you can do
!return mc:cmdwait('call ...')
Note that errors in your code will cause the camera side multicam script to exit, so you would need to use mc:start() again if that happens. You use pcall instead of call to catch errors, but it cannot be use the CHDK functions that yield, meaning things like shooting, waiting for key presses, sleep etc.
Before r611 (which I just checked in, use svn update to get it) mc:cmdwait would by default pick up messages left around by previous calls to mc:cmd. Now both cmd and cmdwait will discard any existing messages before running their code.
If you find yourself using large amounts of code with call, you might want to create a new command. You can do this by adding to the rlib code at the bottom of multicam.lua, or do it on the fly.
e.g.
!return mc:cmdwait('call function cmds.foo() print(mc.args) end')
creates a new command names foo, where mc:cmd("foo hello world") will print hello world on the camera screen.
2.Get current focus.I mean camera gets an initial focus with set_aflock(1).Before i start issuing new focus distances , i want to see whats the current focus distance.
Do you expect to do this across all the cameras, or one camera at a time? Are you trying to return the focus distance value?
3.get_zoom , set_zoom didn't seem to work for me , even with one camera.Do i miss something in the syntax of the command?Do i need to do something else prior of it?
You must be in record mode for these to take effect, other than that there should be nothing special. Examples of the actual code you are using would be helpful.
EDIT : Number #1 solved.
Number #2 solved (thanx to a thread of waterwingz.set_aflock() needed before any zoom related commands)
You should not need af_lock before setting zoom (in fact, zooming with aflock set may cause problems), do you mean focus related commands?