Re: [Gimp-user] Arrays in Python

2018-04-10 Thread Joao S. O. Bueno
It is just Python - Just use on the calee script an inner function - one to be publicly exposed on the PDB taking user arguments, and another one internal meant to be called from other Python functions . On this, simply use a Python list. You can manipulate `sys.path` in order to be able to impo

Re: [Gimp-user] Arrays in Python

2018-04-10 Thread Ofnuts
On 04/10/18 00:57, Beinsezii wrote: AFAIK you can't, but anyway how do you expect the user to enter the bazillion numbers? If you want that many numbers just ask for a file name and read the file. The user already can. I wrote a custom system for making GTK configuration windows that I use with

Re: [Gimp-user] Arrays in Python

2018-04-09 Thread Ofnuts
On 04/09/18 21:09, Beinsezii wrote: No matter what I try, I can't get the plugin to load while using an array in either the input params or return values. Taken straight from the 'gimpenums' pydocs, I should have access to "PDB_INT32ARRAY" "PDB_FLOATARRAY" and a bunch others, but using any of the