Hello: I’m having trouble developing my own Python scripts for Siril. Commands like siri.cmd("pm ...") with pixelMath are particularly problematic. Specifically, the following code causes the program to close, although it manages to save the 2 temporary files to disk (stability issue, memory issue?). But similar commands in the CLI don’t crash.
def main():
siril.undo_save_state(“HDRMT”)
siril.log(“Inicio del procesado”,color=LogColor.GREEN)
try:
with siril.image_lock():
# Se extraen 6 wavelets
siril.cmd(“wavelet 6 2”)
# Se suman las capas de grandes estructuras
siril.cmd(“pm ‘layer03+layer04+layer05’”)
siril.cmd(“wrecons 1 1 1 0 0 0”)
siril.cmd(“save ‘tmp1’”)
siril.cmd(“wrecons 0 0 0 1 1 1”)
# Reducimos la intensidad desplazando los medios tonos a 0.65
siril.cmd(“mtf 0 0.65 1”)
siril.cmd(“save ‘tmp2’”)
# Se suman las capas de pequeñas estructuras
siril.cmd(“pm ‘tmp1 + tmp2’”)
except ProcessingThreadBusyError:
pass
except ImageDialogOpenError:
pass
siril.log(“Fin de la ejecución”,color=LogColor.GREEN)
On the other hand, the ‘extract’ instruction does not work within scripts, even though it is listed as being compatible with scripts.