Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating Python Scripts to Gimp 3
#1
Hi all - I get only errors on PythonConsole 3.04, so my question focuses on a first step line thats "load xcf by script":


GIMP 3.0.4 Python Console
Python 3.12.10 (main, Apr 18 2025, 06:12:22)  [GCC UCRT Clang 20.1.3 64 bit (AMD64)]
➤> import gi
➤> import os
➤> xcfFile = file.xcf.load("E:/TemporaryD/AIWorld/Design/TShirts/2304.xcf")
Traceback (most recent call last):
  File "<input>", line 1, in <module>
NameError: name 'file' is not defined


Almost all tries with different imports result in similar errors - I tried it for hours, so I cannot remember
what I tried and what not. If anyone here gets this one line running (different path of course) he/she
may ask Tinkerbell for a gift...

PetterPaan
Reply


Forum Jump: