<div dir="ltr">Hello,<br>I am having trouble using the QgsProcessingParameterMultipleLayers function:<br>I want to use this function in a graphic model with the "Multiple Sources" parameter, by automatically checking the boxes that meet a filter criterion on layers' name.<br>For this, I create a list containing the names of the filtered layers:<br>"Class Modle (QgsProcessingAlgorithm):<br><br>    def initAlgorithm (self, config = None):<br>        layers = QgsProject.instance (). mapLayers ()<br>        list = []<br>        for layer in layers.values ():<br>            if '_GUF' in <a href="http://layer.name">layer.name</a> ():<br>                list.append (<a href="http://layer.name">layer.name</a> ())<br>        self.addParameter (QgsProcessingParameterMultipleLayers ('testfiltre', 'test', layerType = QgsProcessing.TypeVectorPolygon, defaultValue = list [:])) "<br><br>The defaultValue parameter is populated with the content of the filtered list.<br><br>This code works well when I use it in a script created from the Processing Toolbox on Qgis version 3.14.16-Pi on Windows 10.<br>On the other hand, I tested it on an earlier version (Qgis version 3.10.10-A Coruña and Qgis version 3.4.7-Madeira), and it does not work on these versions:<br>No error message appears, but at runtime the layers matching the filter criteria are not selected.<br>Why is the defaultValue = list parameter not taken into account on Qgis versions prior to 3.14.16?<br>Is there a workaround?<div>Or maybe this is not the good way to do what I want? <br><br>Thank you.<br>Regards,<br>Julien<br></div></div>