[Gimp-user] Custom Script UI



Kevin, in you're code you have no image or drawable picked using the PF_XXX
parameters, but they still show up in your code when the starting function is
run. How? In this code:

#####
def start(*args):
    pdb.gimp_message(args)


register(
    "FSW-SCRIPT",
    "desc.",
    "desc2.",
    "FierySwordswoman",
    "FierySwordswoman",
    "1989",
    "FSW Script",
    "*",
    [],
    [],
    start,
    menu="<Image>/"
    )

main()
#####

it prints the message '()', meaning I'm not receiving the image and drawable
arguments for the function...why?
The closest thing I could find in the python-fu documentation was
"gimp.images_list()", which isn't a good solution.

-- 
FierySwordswoman (via www.gimpusers.com/forums)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]