Mobile app version of vmapp.org
Login or Join
Cofer715

: Basics of macro implementation - missing components I am going through GIMP manual and stuck for my shame at the beginning. How do I call that autoCommander? Is it example for the final result?

@Cofer715

Posted in: #Automation #Gimp #Script

I am going through GIMP manual and stuck for my shame at the beginning. How do I call that autoCommander? Is it example for the final result?



And assume I wrote that pseudo code into ~/.gimp-2.8/myXml/commander/NormalGridCanvas.def:

commander>Normal Grid and Canvas
macro>
comment>Shrink the Canvas back to fit the layer
>>>theImage.resize_to_layers()
comment>Set grid to origin and size = image
>>>pdb.gimp_image_grid_set_offset(theImage, 0, 0)
>>>pdb.gimp_image_grid_set_spacing(theImage, theImage.width, theImage.height)


To convert this to an XML I am supposed to use the GenCommanderXml() from XmlGenerator() class from autoBase.py. According to the next picture it can be called from the GUI:



But I don't have a menu item called "Automation". I also tried to call GenCommanderXml in a GIMP's Python Console but that failed as well. What do I missing?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cofer715

1 Comments

Sorted by latest first Latest Oldest Best

 

@Megan533

Sorry - this you are pointing too is not the oficial GIMP manual - it is on "tutorial" section - and the proposed tool there does not actually exist.

I don't know what it is doing in "tutorials" - it is a loose bunch of ideas on what would be possible to do using GIMP scripting - however, from the first third of that post and bellow it is just a lot of whishful thinking of the author - only the very first listing there is something concrete (Example - GIMP-Python Code Fragment) and still rather useless - it puts lots of extense calls just to set a single image grid options.

What is possible is to script GIMP in Python language - for which we lack good documentation or tutorials. The official docs are here: www.gimp.org/docs/python/ - but they lack examples of immediate use (in contrast with writing a full plug-in) . If you look my GIMP related answers here and on Stack Overflow you will see a lot of other examples.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme