What I want to do is this:
I have a main image open, also a second one that I want to insert to the first one.
In the registration part I use PF_Image fields for both.
The main image is retrieved automatically ( as it’s the first parameter in the register function).
But how do I proceed with the second one?
something like this?
In fact you probably want to insert a layer from the second image into the first one… A second PF_LAYER argument will let you pick an image and a layer in that image.
If you use a PF_IMAGE, you have to determine which layer (image2.active_layer or image2.layers[0] for instance), and then do as above, or iterate all layers in image2and copy them one by one.