General Scripting from the command line - various options?

Support and help for digiCamControl (no bug report)
Post Reply
surfacenikon
Posts: 4
Joined: Thu Sep 06, 2018 10:16 pm

General Scripting from the command line - various options?

Post by surfacenikon » Fri Jun 12, 2020 2:17 am

Hi all-

I've been using DigiCamControl successfully with one camera; things work pretty well, with commands like:

Code: Select all

"C:\Program Files (x86)\digiCamControl\cameracontrolcmd.exe" /filename test.jpg /iso 100 /shutter 1/60 /capture
This above command works when DigiCamControl is *not* running.

With CameraControlRemoteCmd.exe, you can do things in a Windows batch file like the following. This is useful when using multiple cameras.

Code: Select all

"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set camera 123456
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set iso 100
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set shutterspeed 1/100

"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set camera 987654
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set iso 2000
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set shutterspeed 1/50

"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set camera 123456
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c capture c:\pictures\right.jpg
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set camera 987654
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c capture c:\pictures\left.jpg
In this case, DigiCamControl *is* running.

Is there any way to bunch up the commands given to CameraControlRemoteCmd.exe; i.e. to set iso and shutter in the same line?

I know there are other methods of scripting (TCL), but that requires you to install a TCL widget, as far as I know. The final goal is to have something that can be driven by a Python program, so we can have maximum flexibility, but be relatively quick. The above method works, but isn't as fast as I'd like. If the settings of the camera don't change, you can use the command:

Code: Select all

"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c do CaptureAll c:\pictures\both.jpg
... to get all pictures, and figure out which camera took which picture via the EXIF data and the serial number of the camera which is buried in that EXIF data.

General Scripting from the command line - various options?

Advertisment
 

Post Reply