GIMP Chat
http://gimpchat.com/

Using 'my' paint with guidelab (orignal Arkane, changed)
http://gimpchat.com/viewtopic.php?f=25&t=14892
Page 1 of 1

Author:  PKHG [ Thu Nov 10, 2016 3:31 am ]
Post subject:  Using 'my' paint with guidelab (orignal Arkane, changed)

Hi,
The plugin with .. in the zip file (explanation in German in paint_with_guides.txt)
From 11.11 11:11
Attachment:
guidelab_paint.zip [780.19 KiB]
Downloaded 171 times


here the UI for my adjusted guidelab:
Attachment:
gui_paint_guidelab.jpg
gui_paint_guidelab.jpg [ 120.32 KiB | Viewed 3724 times ]


and here an example of use to build a GIF

Attachment:
gimpforum_paint_with_guidelab.gif
gimpforum_paint_with_guidelab.gif [ 206.25 KiB | Viewed 3724 times ]

Author:  Rod [ Thu Nov 10, 2016 7:11 am ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

PKHG wrote:
Hi,
here the UI for my adjusted guidelab:
Attachment:
gui_paint_guidelab.jpg


and here an example of use to build a GIF

Attachment:
gimpforum_paint_with_guidelab.gif

Pretty cool! :)

Author:  PKHG [ Thu Nov 10, 2016 7:21 am ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

[quote="Rod"]

Thanks ;)

Now an example WITH the use of the Simple path plugin used:

Attachment:
guidlabpaintSimplepath.jpg
guidlabpaintSimplepath.jpg [ 44.45 KiB | Viewed 3680 times ]


or this :yes

Attachment:
guidlabpaintSimplepath_02.jpg
guidlabpaintSimplepath_02.jpg [ 79.45 KiB | Viewed 3680 times ]

Author:  PKHG [ Fri Nov 11, 2016 6:07 am ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

zip file with plugin see first post of this thread ;)

Author:  Rod [ Fri Nov 11, 2016 6:35 am ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

PKHG wrote:
zip file with plugin see first post of this thread ;)

Are the PDB calls still the same with MareroQ's newest version 1.1?

Author:  PKHG [ Fri Nov 11, 2016 9:03 am ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

Rod wrote:
PKHG wrote:
zip file with plugin see first post of this thread ;)

Are the PDB calls still the same with MareroQ's newest version 1.1?

no not yet ... will work on it soon ...

Author:  MareroQ [ Fri Nov 11, 2016 12:50 pm ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

Hi Peter.
I really like Your idea.
Unfortunately for me it's still not working properly (maybe my mistake?).
Creates a selected path at the intersection of the guides - other options in section "Simple Path" does not work (and probably are not needed - possibly beyond the pattern fill).
Do you need to use it „Clipboard” (gimp-context-set-pattern) ? - because it's the translation problem.
Yours in anticipation of the next version...

Attachments:
Sections SPC.png
Sections SPC.png [ 13.14 KiB | Viewed 3616 times ]

Author:  PKHG [ Sat Nov 12, 2016 2:09 am ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

MareroQ.
Yes the Clipboard is used at this moment for filling. I will change it soon and upload it here.
Suggestion: could you give different names, which will be used in other scripts (I mean, what will be visible asking the pdb) to your uploaded new versions of "Simple ... "?

Others: How to check in a nice easy way if a plugin is available IN a plugin?

PyGtkers: how to use a Frame in gtk, I can make it visible with a title, but adding other widgets do not show up.

Sorry, for different types of answer/questions ... but readers of this are probably of different 'type' (so to say :) ).

Peter

Works now:
Attachment:
simple_path_ex01.jpg
simple_path_ex01.jpg [ 90.23 KiB | Viewed 3596 times ]


At this moment the switch to select random patterns is on the Add/Edit tab, should probably got to the 4th tab too (or a message there)

Here the file:
Attachment:
guidelab_paint_201.zip [11.96 KiB]
Downloaded 150 times

Author:  Kimba [ Sat Nov 12, 2016 4:22 pm ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

Can someone tell me where to find this plugin in the Gimp menu. I put it in the plugin folder checked its permissions and can't see it anywhere. I don't read german. :gaah

I found it. :yes For some reason I didn't think to look under Image/Guides. :roll:

Author:  PKHG [ Sun Nov 13, 2016 5:34 am ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

Kimba wrote:
Can someone tell me where to find this plugin in the Gimp menu. I put it in the plugin folder checked its permissions and can't see it anywhere. I don't read german. :gaah

I found it. :yes For some reason I didn't think to look under Image/Guides. :roll:


Sorry, next version will include an English installation and info text-file . Soon,
because the Plugin has becom better with respect to the Simple path shapes ...

Author:  PKHG [ Mon Nov 14, 2016 3:25 am ]
Post subject:  Re: Using 'my' paint with guidelab (orignal Arkane, changed)

Finally found what I need, at least working in the Python Console of Gimp
#http://mailman.daa.com.au/cgi-bin/pipermail/pygtk/2003-February/004454.html
import gobject
import gtk
COLUMN_TEXT=0
# initialize the ListStore.  Fom more complicated lists, see pygtk src example
# pygtk-demo/demos/list_store.py
#ORiGinal mydata = ['John', 'Miriam', 'Rahel', 'Ava', 'Baerbel']
num_patterns, mydata = pdb.gimp_patterns_get_list('')

model = gtk.ListStore(gobject.TYPE_STRING)
for item in mydata:
    iter = model.append()   
    model.set(iter, COLUMN_TEXT, item)
# set up the treeview to do multiple selection
#PKHG>INFO neline needed for Gimp Python Console

treeview = gtk.TreeView(model)
treeview.set_rules_hint(gtk.TRUE)   
column = gtk.TreeViewColumn('Name', gtk.CellRendererText(),
                            text=COLUMN_TEXT)
treeview.append_column(column)
treeview.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
# when you click ok, call this function for each selected item
def foreach(model, path, iter, selected):
    selected.append(model.get_value(iter, COLUMN_TEXT))

def ok_clicked(event):
    selected = []
    treeview.get_selection().selected_foreach(foreach, selected)
    print 'And the winners are...', selected
    #gtk.main_quit()

def endme_clicked(event):
    gtk.main_quit()


# the rest is just window boilerplate
win = gtk.Window()
win.connect('destroy', lambda win: gtk.main_quit())
win.set_title('GtkListStore demo')
win.set_border_width(8)
vbox = gtk.VBox(gtk.FALSE, 8)
win.add(vbox)

label = gtk.Label('Select your firends and family')
vbox.pack_start(label, gtk.FALSE, gtk.FALSE)

sw = gtk.ScrolledWindow()
sw.set_shadow_type(gtk.SHADOW_ETCHED_IN)
sw.set_policy(gtk.POLICY_NEVER,
              gtk.POLICY_AUTOMATIC)
vbox.pack_start(sw)
sw.add(treeview)
win.set_default_size(280, 250)


endme = gtk.Button("END")
endme.show()
endme.connect("clicked",endme_clicked)
vbox.pack_end(endme)  #PKHG>????

button = gtk.Button('OK')
button.show()
button.connect("clicked", ok_clicked )
vbox.pack_end(button,gtk.FALSE)
   
win.show_all()
gtk.main()
      


Now I will try to put it into my plugin, working for selecting patterns to be used ;-)

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/