02-29-2024, 11:59 PM
I won't change my plugin (or at least the change needed is a bit more complicated, and will require some testing...).
run_mode=RUN_INTERACTIVE if self.layerImageIndex==0 else RUN_WITH_LAST_VALS: on the first layer (for a given execution of the script) the export plugin is called with RUN_INTERACTIVE to pop out a dialog, and for all other layers it is called with RUN_WITH_LAST_VALS so it doesn't pop out the dialog and uses the values from the first dialog.
run_mode=RUN_INTERACTIVE if self.layerImageIndex==0 else RUN_WITH_LAST_VALS: on the first layer (for a given execution of the script) the export plugin is called with RUN_INTERACTIVE to pop out a dialog, and for all other layers it is called with RUN_WITH_LAST_VALS so it doesn't pop out the dialog and uses the values from the first dialog.