Auto processing the Maze Plugin. - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Auto processing the Maze Plugin. (/Thread-Auto-processing-the-Maze-Plugin) |
Auto processing the Maze Plugin. - ggarrod76@gmail.com - 11-19-2019 Hello everyone, I've been playing around with the maze generator inside gimp 2.10 creating mazes for FPS game im working on. what i was wondering is there a simple way to have gimp auto generate the mazes as in saying i want 10 mazes with the only thing changing be the random seed. then have them save them selfs as has png to a folder. Thanks for any help on this subject. RE: Auto processing the Maze Plugin. - tmanni - 11-20-2019 You need something like this : Code: from gimpfu import * Save this python code in a file in the gimp plug-in directory. Be sure this file has executable permission. Restart gimp and you will have a new menu entry called Maze Images. This -quickly done- plug-in will generate n png images called "maze-x.png" where x is the seed used to generate the maze. |