Sun Apr 26, 2020 1:56 pm
Sun Apr 26, 2020 3:21 pm
#!/usr/bin/env python
[
(PF_IMAGE, 'image', 'Input image', None),
(PF_INT, "int_Hor_Guide_Cnt", "Number of Horizontal Sections", 0),
(PF_INT, "int_Vert_Guide_Cnt", "Number of Verticle Sections", 0)
],
"April 2020",
"Custom Guides",
"*",
[
(PF_INT, "int_Hor_Guide_Cnt", "Number of Horizontal Sections", 0),
(PF_INT, "int_Vert_Guide_Cnt", "Number of Verticle Sections", 0)
],
[],
void_create_custom_guides,
menu='<image>/Image/Guides/'
(PF_SPINNER, "int_Hor_Guide_Cnt", "Number of Horizontal Sections", 1, (1,100, 1)),
int_hguide = int_horz_space
for cnt in range( 1, int_Hor_Guide_Cnt ):
pdb.gimp_image_add_hguide( image, int_hguide )
int_hguide += int_horz_space
for cnt in range( 1, int_Hor_Guide_Cnt ):
pdb.gimp_image_add_hguide( image, int_horz_space*cnt )
for guidePos in range( int_Hor_Guide_Cnt,image.width,int_Hor_Guide_Cnt ):
pdb.gimp_image_add_hguide( image, guidePos)
Sun Apr 26, 2020 8:44 pm
ofnuts wrote: Welcome to the club
Mon Apr 27, 2020 2:54 am
mahvin wrote:ofnuts wrote: Welcome to the club
My first Python script would have gotten me booted from the club.
Mon Apr 27, 2020 1:32 pm
Mon Apr 27, 2020 2:56 pm
mazzolav wrote:Where can I find an updated list of parameters for the register function.
Tue Apr 28, 2020 2:33 am
mazzolav wrote:Where can I find an updated list of parameters for the register function.
Tue Apr 28, 2020 8:08 am