exec mc=require('multicam') mc:connect() for i,lcon in ipairs(mc.cams) do con=lcon cli:print_status(cli:execute('mdl A/DCIM /MultiCam/' .. lcon.ptpdev.serial_number .. ' -fmatch=%.JPG$')) cli:print_status(cli:execute('rm A/DCIM ')) end
chdkptp -e"exec mc=require('multicam') mc:connect() for i,lcon in ipairs(mc.cams) do con=lcon cli:print_status(cli:execute('mdl A/DCIM /MultiCam/' .. lcon.ptpdev.serial_number .. ' -fmatch=%.JPG$')) cli:print_status(cli:execute('rm A/DCIM ')) end"
ERROR: compile failed:[string "mc=require('multicam') mc:connect() for i,lco..."]:1: ')' expected near 'rm'
echo "exec mc=require('multicam') mc:connect() for i,lcon in ipairs(mc.cams) do con=lcon cli:print_status(cli:execute('mdl A/DCIM /MultiCam/' .. lcon.ptpdev.serial_number .. ' -fmatch=%.JPG$')) cli:print_status(cli:execute('rm A/DCIM ')) end"
Quote from: indian22 on 04 / May / 2014, 13:25:54The big problem for us is to modify multicam.lua to download the photos to pc.This shouldn't be too hard. You can use something like:Code: [Select]!mc=require'multicam'... do your regular multicam shooting!mc:cmd('exit') !for i,lcon in ipairs(mc.cams) do cli:print_status(lcon:mdownload({'A/DCIM'},'/some/path',{fmatch='%.JPG$'})) end!mc:start()...If you want to the CLI mdownload command instead of figuring out the API parameters, you could do it like thisCode: [Select] !for i,lcon in ipairs(mc.cams) do con=lcon cli:print_status(cli:execute('mdl A/DCIM /some/path -fmatch=%.JPG$')) endSome day I'd like to integrate shoot and download into multicam, but I haven't got to it yet.
The big problem for us is to modify multicam.lua to download the photos to pc.
!mc=require'multicam'... do your regular multicam shooting!mc:cmd('exit') !for i,lcon in ipairs(mc.cams) do cli:print_status(lcon:mdownload({'A/DCIM'},'/some/path',{fmatch='%.JPG$'})) end!mc:start()...
!for i,lcon in ipairs(mc.cams) do con=lcon cli:print_status(cli:execute('mdl A/DCIM /some/path -fmatch=%.JPG$')) end
Hello! i am a beginner of CHDK,so here i have a very simple question about coding. what i should do is just add this code to the end of multicam.lua ? or somewhere in the multicam.lua .and what is the process to make this .lua work, sorry i really know nothing about this.
Quote from: cdg on 24 / June / 2015, 13:29:15Hello! i am a beginner of CHDK,so here i have a very simple question about coding. what i should do is just add this code to the end of multicam.lua ? or somewhere in the multicam.lua .and what is the process to make this .lua work, sorry i really know nothing about this.The code listed above is meant to be run from the chdkptp command line, so you would enter it when you wanted to download files, or put it in a function in some lua file and call it.However, since this thread was started, I added the mc:download_images function to multicam. I'd suggest using it instead. A description can be found in http://chdk.setepontos.com/index.php?topic=11667.msg114920#msg114920. There is also some documentation in the multicam.lua file.To use multicam effectively, you will need a pretty good understanding of scripting. There is no simple, use friendly interface to control multiple cameras.
now i just get one camera work well with CHDK PTP ,i could control the camera with my PC ,but when i tried to connect two cameras using a hub to my PC,the CHDK PTP not working anymore,i only could control one camera at once ,can not control them together at the same time,there should be something that i missed
,do you know why?
iup.button{ title='mc download', size='90x15', action=function(self) mc:download_images() end, },
iup.hbox{ gui.mode_dropdown, }, iup.fill{},
Started by ethereal Creative Uses of CHDK
Started by artanim Creative Uses of CHDK
Started by ghust10 RAW Shooting and Processing
Started by amavroidis « 1 2 ... 5 6 » General Discussion and Assistance
Started by andrew.stephens.754365 « 1 2 ... 7 8 » General Discussion and Assistance