<div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I have an index of rasters.</div><div>I have added an action to the QGIS dataset which will open the raster directly into QGIS.</div><div><br></div><div>The script I use is this:</div><div><br></div><div><div>from qgis.utils import iface</div><div>qgis.utils.iface.addRasterLayer('[% path %]')</div><div>index = QgsProject.instance().mapLayersByName('Catalogue_Raster_Aerial_Photography')[0]</div><div>iface.setActiveLayer(index)</div></div><div><br></div><div>It works well, except the raster loads to the 'top' of the layer list.</div><div>Is there a command to use so that the image loads to the bottom of the map?</div><div>I prefer to have my index always on top of the list.</div><div><br></div><div>thanks</div></div></div>