Gimp-Forum.net
ofn-text-along-path with 2 menus - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: ofn-text-along-path with 2 menus (/Thread-ofn-text-along-path-with-2-menus)



ofn-text-along-path with 2 menus - Krikor - 02-25-2020

I don't know which title could have been chosen better.

Maybe everything is normal, but ...
Only now have I noticed that there are two ofn-text-along-path scripts displayed in the menu;
• ofn-text-along-path
• ofn-text-along-path-Multi

But the strange thing is that:
• There is only one .py file for both. (ofn-text-along-path.py)
• I don't see any difference between them other than the name and that there are two of them on the menu, and that both work.

I don't know how I achieved this feat.

Is it supposed to be like this, like this?


RE: ofn-text-along-path with 2 menus - Ofnuts - 02-25-2020

A single Python file can register several menu entries (if you ever use my ofn-path-to-shape, it defines about 20 menu entries).

You'll notice that the "Multi" version has a "Text" entry field that takes several lines. If you read the doc you will learn that in the Multi version, each line of input is applied to a different stroke. See https://www.gimp-forum.net/Thread-ofn-text-along-path?pid=4138#pid4138