GIMP Chat http://gimpchat.com/ |
|
Learning to do first Python script http://gimpchat.com/viewtopic.php?f=9&t=18196 |
Page 1 of 1 |
Author: | Pocholo [ Tue Apr 07, 2020 1:36 pm ] |
Post subject: | Learning to do first Python script |
Hi I"m trying to learn python scripting, (I took advise from ofnuts, thank you) and I'm trying to create my first simple plugin "Extreme Canvas texturing". The problem is that is not registering with GIMP, it doesn't appear on the menu Scrip-fu. Any help will be appreciated. I want to let you know that I'm a 59 old but I'm in first grade in Python scripting, so be gentle! Thank you in advanced. This is the script so far: Code: Select all #!/usr/bin/env python |
Author: | rich2005 [ Tue Apr 07, 2020 2:34 pm ] |
Post subject: | Re: Learning to do first Python script |
Your i in "image" is not an i That gets it registered but not a lot happens. Attachment: not-an-i.jpg [ 55.72 KiB | Viewed 2388 times ] |
Author: | Steve [ Tue Apr 07, 2020 2:45 pm ] |
Post subject: | Re: Learning to do first Python script |
I got it working after making 3 changes TOP_RIGHT is not defined the two lines below were deleted/not required (PF_IMAGE, "ïmage", "take current image", "None"), (PF_DRAWABLE, "drawable", "input layer", "None"), comma missing at end of line python_extreme_canvas_texturing) steve |
Author: | racer-x [ Tue Apr 07, 2020 2:51 pm ] |
Post subject: | Re: Learning to do first Python script |
Running in terminal, it reports error in line 34: Code: Select all line 34 |
Author: | Pocholo [ Tue Apr 07, 2020 2:59 pm ] |
Post subject: | Re: Learning to do first Python script |
Thank you guys, you are Awesome! |
Author: | mazzolav [ Tue Apr 21, 2020 4:53 pm ] |
Post subject: | Re: Learning to do first Python script |
I was also having a problem writing my first script. What I found out that helped me was to start gimp in verbose mode. The easiest way to do this is use the verbose flag (--verbose) when starting gimp. Thanks |
Author: | ofnuts [ Wed Apr 22, 2020 2:47 am ] |
Post subject: | Re: Learning to do first Python script |
See also: https://www.gimp-forum.net/Thread-Debug ... in-Windows |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |