Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp Python script file load question
#1
I have a working Gimp plugin that takes an open XCF, adds a new layer to it, positions the new layer, and then exports a JPG. 

However, the plugin only works if I'm in the Gimp UI and the XCF file is already open. I want to run it from the command line and some how call pdb.gimp_xcf_load somewhere top open the XCF, but I can't get the file open or command line to work. 

What is the best way to do this? Should I have a wrapper script that opens the XCF and then calls my working script?  Or can I both open the XCF and the JPEG in a single plugin? Is there a best practice?
Reply


Messages In This Thread
Gimp Python script file load question - by TimorousMe - 03-18-2021, 04:17 AM

Forum Jump: