def __update( self ) :

		if self.__frame == self.__context.getFrame() :
			return

		if self.__context.getFrame() not in self.__validFrames :
			raise ValueError( "Invalid frame" )

		self.clear()
		for plug in self.__variables.children() :
			value, name = self.__variables.memberDataAndName( plug )
			if value is None :
				continue
			with IECore.IgnoredExceptions( Exception ) :
				value = value.value

			self[name] = value

		self.__frame = self.__context.getFrame()
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferDispatch/PythonCommand.py/_VariablesDict.__update/original