<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi list,<br></div><div>I want to use the 'multiPartToSinglePart' script via code for my plugin.<br></div><div>I can use it importing processing like this:<br></div><div><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; font-size: small; color: rgb(255, 153, 0);">import processing</span><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; font-size: small; color: rgb(255, 153, 0);">processing.runalg("qgis:multiparttosingleparts", input, output)</span><div><br></div></div><div>but I wan't to use it in a different way, like I already do with the 'dissolve' script:<br></div><div><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; font-size: small; color: rgb(255, 153, 0);">from qgis.analysis import *</span></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; font-size: small; color: rgb(255, 153, 0);">analyzer = QgsGeometryAnalyzer()</span><br></div><div><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; font-size: small; color: rgb(255, 153, 0);">analyzer.dissolve(input, output)</span></div><div><br></div><div>(even if I could write:<br></div><div><span style="color: rgb(255, 153, 0); font-family: "courier new",courier,monaco,monospace,sans-serif; font-size: small;">import processing</span><br></div><div><span style="color: rgb(255, 153, 0);"><span style="font-family: "courier new",courier,monaco,monospace,sans-serif; font-size: small;">processing.runalg("qgis:dissolve",input,output</span>)</span></div><div>)<br></div><div><br></div><div>Is it possible?<br></div><div><br></div><div>Thanks.<br></div><div>Stefano<br></div><div><br></div><div><span name="x"></span><br></div><div><br></div></div></body></html>