GIMP Chat http://gimpchat.com/ |
|
HEELPPP. Python script breaking http://gimpchat.com/viewtopic.php?f=9&t=15531 |
Page 1 of 1 |
Author: | kaldrax [ Fri Apr 28, 2017 4:40 pm ] |
Post subject: | HEELPPP. Python script breaking |
Okay, so I'm trying to add a new black layer as a background, but for some reason this line breaks my script: bg = pdb.gimp_layer_new(img, img.width, img.height, 3, “BG”, 100, 0) What am I doing wrong?? |
Author: | kaldrax [ Fri Apr 28, 2017 5:13 pm ] |
Post subject: | Re: HEELPPP. Python script breaking |
Hmm even when I comment the line out with #, gimp still doesn't even recognize the plugin. But if I completely delete the line, everything works fine. |
Author: | Rod [ Fri Apr 28, 2017 7:33 pm ] |
Post subject: | Re: HEELPPP. Python script breaking |
I dont think you need the double quotes around BG. |
Author: | ofnuts [ Sat Apr 29, 2017 1:49 am ] |
Post subject: | Re: HEELPPP. Python script breaking |
Rod wrote: I dont think you need the double quotes around BG. Quotes are necessary, this is a string literal (unless there is a BG variable somewhere). But the quotes as pasted above are wrong, these are not straight double-quotes ("") but opening/closing double quotes (“”). Do not use a word processor to write code because it tries to be clever when it shouldn't, use a real programmer's editor (Notepadd++ or else) (which will also do real-time syntax highlighting, help with indentation, etc... |
Author: | kaldrax [ Sat Apr 29, 2017 12:48 pm ] |
Post subject: | Re: HEELPPP. Python script breaking |
OMG! I had no idea there were different kinds of double quotes. Thank you!!! |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |