How can I enable the checkbox of atlas of print composer in QGIS 3.4, from Python Console in QGIS?
Here a image:
You have to search your layout (lyt
) by name (lytname
) in the layoutManager of the QgsProject instance, get the atlas and enable it :
lytname = "mep"
lyt = QgsProject.instance().layoutManager().layoutByName(lytname)
lyt.atlas().setEnabled(True)