Laminator — Connection Methods
Laminator operations are accessed through Connection methods. They apply to printers with an attached lamination module (e.g., Evolis Lamination Module).
Checking Laminator Validity
is_laminator_valid(index: LaminatorIndex, timeout_ms: int = 30000) -> bool
Returns True if the specified laminator index corresponds to a valid lamination module.
if co.is_laminator_valid(evolis.LaminatorIndex.FIRST):
print("Laminator is present")Getting Information
get_laminator_info(index: LaminatorIndex, timeout_ms: int = 30000) -> LaminatorInfo | None
Returns laminator details:
| Field | Type | Description |
|---|---|---|
| (fields from LaminatorInfo) | various | Module-specific information |
get_laminator_film_info(index: LaminatorIndex, timeout_ms: int = 30000) -> LaminatorFilmInfo | None
Returns laminate film details (type, remaining capacity, etc.).
Configuration
set_laminator_mode(index: LaminatorIndex, mode: LaminatorMode, timeout_ms: int = 30000) -> bool
Set the lamination mode.
set_laminator_speed_cfg(index: LaminatorIndex, face: CardFace, value: int, timeout_ms: int = 30000) -> bool
Set lamination speed for a given card face. Value range: 1–20.
set_laminator_temp_cfg(index: LaminatorIndex, face: CardFace, value: int, timeout_ms: int = 30000) -> bool
Set lamination temperature for a given card face. Value range: 1–20.
set_laminator_first_patch(index: LaminatorIndex, front: bool, timeout_ms: int = 30000) -> bool
Choose which side receives the first lamination patch.
Parallel Mode
is_parallel_mode_enabled(timeout_ms: int = 30000) -> bool
Returns True if the printer can start a new print job while a card is being laminated.
enable_parallel_mode(enable: bool, timeout_ms: int = 30000) -> bool
Enable or disable parallel mode.
co.enable_parallel_mode(True)Example
import evolis
with evolis.Connection("Evolis Primacy") as co:
idx = evolis.LaminatorIndex.FIRST
if co.is_laminator_valid(idx):
info = co.get_laminator_film_info(idx)
print("Film remaining:", info.remaining if info else "N/A")
co.set_laminator_mode(idx, evolis.LaminatorMode.FRONT_AND_BACK)
co.set_laminator_speed_cfg(idx, evolis.CardFace.FRONT, 10)
co.set_laminator_temp_cfg(idx, evolis.CardFace.FRONT, 10)