Ejemplo n.º 1
0
    def configure(self):
        AbstractShutterPlugin.configure(self)

        # Build camera exposure compensation list
        if self._config['CAMERA_EXPOSURE_COMPENSATION_LIST'] == u"±5@1/3":
            self.__cameraExposureCompensationList = CAMERA_EXPOSURE_COMPENSATION_LIST_1_3
        elif self._config['CAMERA_EXPOSURE_COMPENSATION_LIST'] == u"±5@1/2":
            self.__cameraExposureCompensationList = CAMERA_EXPOSURE_COMPENSATION_LIST_1_2
        Logger().debug("NkRemoteShutter.configure(): camera exposure compensation table=%s" % \
                       self.__cameraExposureCompensationList)

        # Build user exposure compensation list
        self.__userExposureCompensationList = self._config['USER_EXPOSURE_COMPENSATION_LIST'].split(',')
        Logger().debug("NkRemoteShutter.configure(): user exposure compensation list=%s" % \
                       self.__userExposureCompensationList)
Ejemplo n.º 2
0
 def stopConnection(self):
     Logger().trace("GphotoBracketShutter.stopConnection()")
     AbstractShutterPlugin.stopConnection(self)
     if self.__gphotoShell is not None:
         self.__gphotoShell.quit()
         self.__gphotoShell = None
Ejemplo n.º 3
0
 def _init(self):
     Logger().trace("ShutterPlugin._init()")
     AbstractShutterPlugin._init(self)
     self._LastShootTime = time.time()
Ejemplo n.º 4
0
 def stopConnection(self):
     Logger().trace("GphotoBracketShutter.stopConnection()")
     AbstractShutterPlugin.stopConnection(self)
     if self.__gphotoShell is not None:
         self.__gphotoShell.quit()
         self.__gphotoShell = None
Ejemplo n.º 5
0
 def _init(self):
     Logger().trace("ShutterPlugin._init()")
     AbstractShutterPlugin._init(self)
     self._LastShootTime = time.time()
Ejemplo n.º 6
0
 def init(self):
     Logger().trace("DslrRemoteProShutter.init()")
     AbstractShutterPlugin.init(self)
     self.configure()