Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing a simple python plugin
#1
Brick 
Why is it so hard to create a plugin. I am trying to write a simple plugin to export the current image to a PNG file and then close the view. I am stuck at the save the image. Plugin attached.


Attached Files
.py   exportandclose.py (Size: 4.07 KB / Downloads: 3)
Reply
#2
Can't see your plug-in
Reply
#3
(3 hours ago)MrsP-from-C Wrote: Can't see your plug-in

scripts/plugins can now be attached with extension, for a .py maybe your browser is security blocking the attachment.

However it is a subject close to my heart, Gimp 3 python is complicated for the average user and any explanations are welcome.

To me the attachment looks AI generated. (I have my own script-fu (as a plugin) for exporting webp and it is a quarter the size. )

I will attach the plugin zipped in-case of a security block and in its own folder as required by Gimp 3.

Fails on the first line, the shebang is incorrect. Fix that and it does register but there are hard coded paths (specific to user)

Attached: 
.zip   exportandclose.zip (Size: 1.8 KB / Downloads: 4)
Reply


Forum Jump: