Method for the electrochemical processing of an object with a device which is at least provided with a chamber that is to accommodate an electrolyte, means for supporting the object that is to be processed in said chamber, at least one set of electrodes extending parallel to each other, which electrodes are located in said chamber such that during operation at least one electrode is located opposite each portion of a surface of said object that is to be processed, as well as control means for providing an electric current between the object that is to be processed and the electrodes, characterized in that the device comprises at least one raster pattern comprising a number of nodes with fixed spacings between the nodes in at least two different directions, wherein a number of electrodes is arranged on the nodes of the raster pattern, whilst at least one electrode is located at a position shifted with respect to the nearest node of the raster pattern, wherein when a calculated expected or a realized layer thickness of the layer deposited on or removed from the object differs from the desired layer thickness, the positions of the electrodes are recalculated and the electrodes are being rearranged.