07-04-2021, 07:35 PM
The plugin does not show in the menu for me either. When I loaded the file in Gimp's Python console, I got lots of indentation errors, the first one on line 90 where reads:
Line 90 is that with the "def get_layer_pos". The line immediately above is quite empty, not even spaces. (And he uses tabulators for indentations.) Could it be that Gimp's Python does not accept empty lines in such places? When I deleted that empty line and tried again, that error went away and now the first error was at the next empty line. So should one go to remove all empty lines? The file is over 1500 lines. Or is there perhaps some other problem?
Code:
................
import ConfigParser
import string
class reuse_init(object):
previewLayer = None
def get_layer_pos(self, layer):
Line 90 is that with the "def get_layer_pos". The line immediately above is quite empty, not even spaces. (And he uses tabulators for indentations.) Could it be that Gimp's Python does not accept empty lines in such places? When I deleted that empty line and tried again, that error went away and now the first error was at the next empty line. So should one go to remove all empty lines? The file is over 1500 lines. Or is there perhaps some other problem?