You are using keywords paramaters where you shouldn't:
Also:
For some examples see here (especially those with export in the name)
(*) Of course you need to import os
Code:
Traceback (most recent call last):
File "/home/me/Code/Gimp/NotMine/Activated/SaveLayer.py", line 27, in <module>
menu = ("<image>/Layer")
TypeError: register() got an unexpected keyword argument 'parameters'
Also:
- As a general rule, I find your use of register() disturbing. Most parameters are positional (see examples in linked page below).
- There are way too many parentheses: copyright = "REC" works just as well.
- In Python, like in all programming languages, the \ is an escape character, so where you need one as a plain character it should be doubled: "C:\\Users\\User\\Pictures\\GIMP\\folder_1\\01.png". However:
- In practice Windows will also accept forward slashes ("C:/Users/User/Pictures/GIMP/folder_1\01.png")
- The right way to handle this is to
- Obtain the user's Pictures directory with gimp.user_directory(4) (this gives the good answer whatever the configuration and user's language on Windows, OSX and Linux)
- Compose path using os.path.join()(*). For instance your path is os.path.join(gimp.user_directory(4),'GIMP','folder_1','01.png') (on all platforms).
- You can of course create a directory first (dir=os.path.join(gimp.user_directory(4),'GIMP','folder_1')) and then use it later in another join (os.path.join(dir,file))
- Obtain the user's Pictures directory with gimp.user_directory(4) (this gives the good answer whatever the configuration and user's language on Windows, OSX and Linux)
- In practice Windows will also accept forward slashes ("C:/Users/User/Pictures/GIMP/folder_1\01.png")
For some examples see here (especially those with export in the name)
(*) Of course you need to import os