Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python_fu_ofn_export_layers question
#3
(02-29-2024, 02:03 PM)Ofnuts Wrote: For the time being, replace this line in the script (line 123):
Code:
       pdb.gimp_file_save(exportImage,exportLayer,filePath,filePath,run_mode=RUN_INTERACTIVE if self.layerImageIndex==0 else RUN_WITH_LAST_VALS)
by:
Code:
       pdb.gimp_file_save(exportImage,exportLayer,filePath,filePath)

Warning: untested Angel

works!
You want to change it in the plugin or keep the old way? Because the old way, see below, is not working here Sad

Code:
RUN_WITH_LAST_VALS

Does this mean it would run with the same parameters when you run it for the 2nd time? This is not working here. When I run the plugin the 2nd time from my script, the "save as" dialog is shown again. Can you change it to "run with save as dialog the first time, but the next time run it with last used parameters"?


What does this line below mean exactly?


Code:
run_mode=RUN_INTERACTIVE if self.layerImageIndex==0 else RUN_WITH_LAST_VALS
Reply


Messages In This Thread
RE: python_fu_ofn_export_layers question - by gimpygirl - 02-29-2024, 06:14 PM

Forum Jump: