It is currently Sat Jun 29, 2024 1:48 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Thu Nov 10, 2016 3:31 am  (#1) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
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 170 times


here the UI for my adjusted guidelab:
Attachment:
gui_paint_guidelab.jpg
gui_paint_guidelab.jpg [ 120.32 KiB | Viewed 3720 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 3720 times ]


Last edited by PKHG on Fri Nov 11, 2016 6:06 am, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Thu Nov 10, 2016 7:11 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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! :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Thu Nov 10, 2016 7:21 am  (#3) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
[quote="Rod"]

Thanks ;)

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

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


or this :yes

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


Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Fri Nov 11, 2016 6:07 am  (#4) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
zip file with plugin see first post of this thread ;)


Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Fri Nov 11, 2016 6:35 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Fri Nov 11, 2016 9:03 am  (#6) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
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 ...


Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Fri Nov 11, 2016 12:50 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
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 3612 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Sat Nov 12, 2016 2:09 am  (#8) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
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 3592 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


Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Sat Nov 12, 2016 4:22 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Mar 16, 2015
Posts: 613
Location: On Earth,specifically Queensland,Australia
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:

_________________
Image


Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Sun Nov 13, 2016 5:34 am  (#10) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
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 ...


Top
 Post subject: Re: Using 'my' paint with guidelab (orignal Arkane, changed)
PostPosted: Mon Nov 14, 2016 3:25 am  (#11) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
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 ;-)


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Can the cursor be changed for the warp transform tool?

1

No new posts GIMP ui font changed by itself, unable to revert the change

5



* Login  



Powered by phpBB3 © phpBB Group