Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replicating a path
#12
Thanks to all who tried the plugin.

Here is a new plugin, "Replicate path by affine mapping". The idea is that when you take a path and apply the tools Move, Scalse, Rotate, Shear, Flip to it, then the plugin enables you to do the same action repeatedly in one step, producing a succession of paths. Some quickly made miscellanous examples of what the plugin does:

   

The plugin is here:

http://kmarkku.arkku.net/Path_replicate_...aster.html

Unzip the .zip file and place the one file it contains (replicate_path_by_affine_mapping.py) in your user's plug-ins folder. Then (re)start Gimp. The plugin is in the menu here:

Tools > Replicate > Replicate path by an affine mapping.

I explain the plugin now. But do not expect too much of it. It is rather limited and often what it produces is not what you were trying to get.

The plugin is used as follows. As input you give two paths; I call them "the Original path" and "the Seed".
  1. The Original path is any path you have made.
  2. The Seed you construct: (1) Take a copy of the Original path. (2) To the copy apply any of the tools Move, Scale, Rotate, Shear, Flip, either one of them or several in succession. (This means that you are applying some affine transformation.)
  3. Then you call the plugin: right-click the Original path and navigate to the plugin, and in the GUI choose the Seed path.
Example

   

  1. The Original path is created.
  2. The Seed is created from a copy, in this picture with tools Move, Rotate, Scale.
  3. The plugin is called with the proper paths.
The plugin works by examining the two input paths, recognizing the applied transformation to its best ability, and then applying the transformation repeatedly, producing a succession of new paths. Or, to borrow notation from mathematics, let

P = the Original path
F = the affine transformation (the tools Move,...).

Then Seed = F(P), and what the plugin creates are paths F(F(P)), F(F(F(P))), F(F(F(F(P)))), ...

As default the plugin merges all output paths together but it allows you to have them as separate paths.

A word of caution: It may happen that the transformation F cannot be determined uniquely from the Original path and the Seed. Then the plugin just chooses one from a small number of possibilities, and it may not be what you wanted. The remedy is to put an additional anchor somewhere in the Original path to help the plugin to make the right decision. (And the Seed must be constructed after adding the anchor.)

Finally, some playings, together with Path to selection and Bucket fill or Gradient. Sorry if these hurt your eyes, I don't have the same skills as some others.


   
Reply


Messages In This Thread
Replicating a path - by Ottia Tuota - 12-05-2021, 09:32 AM
RE: Replicating a path - by rich2005 - 12-05-2021, 11:35 AM
RE: Replicating a path - by Ottia Tuota - 12-05-2021, 11:55 AM
RE: Replicating a path - by rich2005 - 12-05-2021, 12:26 PM
RE: Replicating a path - by Ottia Tuota - 12-06-2021, 08:08 AM
RE: Replicating a path - by Ottia Tuota - 12-11-2021, 12:06 PM
RE: Replicating a path - by Krikor - 12-11-2021, 03:22 PM
RE: Replicating a path - by denzjos - 12-12-2021, 07:17 PM
RE: Replicating a path - by Ottia Tuota - 12-12-2021, 08:02 PM
RE: Replicating a path - by nelo - 12-13-2021, 09:38 AM
RE: Replicating a path - by teapot - 12-21-2021, 03:44 AM
RE: Replicating a path - by Ottia Tuota - 12-21-2021, 01:24 PM
RE: Replicating a path - by denzjos - 12-21-2021, 05:33 PM
RE: Replicating a path - by Ottia Tuota - 12-21-2021, 07:37 PM
RE: Replicating a path - by teapot - 12-21-2021, 06:27 PM
RE: Replicating a path - by Krikor - 12-21-2021, 07:05 PM
RE: Replicating a path - by denzjos - 12-22-2021, 09:05 AM
RE: Replicating a path - by Ottia Tuota - 12-22-2021, 10:09 AM
RE: Replicating a path - by rich2005 - 12-22-2021, 10:15 AM
RE: Replicating a path - by Ottia Tuota - 12-22-2021, 11:44 AM
RE: Replicating a path - by rich2005 - 12-22-2021, 02:14 PM
RE: Replicating a path - by Ottia Tuota - 12-22-2021, 04:40 PM
RE: Replicating a path - by denzjos - 12-23-2021, 09:54 AM
RE: Replicating a path - by Ottia Tuota - 12-23-2021, 12:41 PM
RE: Replicating a path - by Ottia Tuota - 01-28-2022, 04:49 PM
RE: Replicating a path - by Ottia Tuota - 01-29-2022, 07:56 AM
RE: Replicating a path - by rich2005 - 01-29-2022, 04:07 PM
RE: Replicating a path - by Ottia Tuota - 01-29-2022, 04:32 PM
RE: Replicating a path - by rich2005 - 01-29-2022, 04:38 PM
RE: Replicating a path - by teapot - 01-30-2022, 03:18 AM
RE: Replicating a path - by Ottia Tuota - 01-30-2022, 07:02 AM
RE: Replicating a path - by Ottia Tuota - 01-30-2022, 08:57 AM
RE: Replicating a path - by denzjos - 01-30-2022, 04:27 PM
RE: Replicating a path - by Ottia Tuota - 01-30-2022, 04:43 PM
RE: Replicating a path - by denzjos - 01-30-2022, 05:34 PM
RE: Replicating a path - by Ottia Tuota - 01-30-2022, 06:18 PM
RE: Replicating a path - by teapot - 02-01-2022, 03:45 AM
RE: Replicating a path - by Ottia Tuota - 02-01-2022, 06:42 AM
RE: Replicating a path - by Ottia Tuota - 02-02-2022, 12:02 PM
RE: Replicating a path - by teapot - 02-03-2022, 04:18 AM
RE: Replicating a path - by Ottia Tuota - 02-03-2022, 04:52 AM
RE: Replicating a path - by teapot - 04-28-2022, 12:20 AM
RE: Replicating a path - by Ottia Tuota - 04-28-2022, 05:30 AM
RE: Replicating a path - by Ottia Tuota - 04-28-2022, 11:15 AM
RE: Replicating a path - by rich2005 - 04-28-2022, 12:18 PM
RE: Replicating a path - by Ottia Tuota - 04-28-2022, 01:58 PM
RE: Replicating a path - by Krikor - 04-28-2022, 03:49 PM
RE: Replicating a path - by rich2005 - 04-28-2022, 03:16 PM
RE: Replicating a path - by teapot - 04-28-2022, 03:58 PM
RE: Replicating a path - by Ottia Tuota - 04-28-2022, 04:17 PM
RE: Replicating a path - by Krikor - 04-28-2022, 04:46 PM
RE: Replicating a path - by teapot - 04-29-2022, 01:36 AM
RE: Replicating a path - by Ottia Tuota - 04-29-2022, 04:28 AM
RE: Replicating a path - by Krikor - 04-29-2022, 01:22 PM
RE: Replicating a path - by teapot - 04-30-2022, 03:05 AM
RE: Replicating a path - by rich2005 - 08-05-2022, 11:00 AM
RE: Replicating a path - by teapot - 08-07-2022, 01:40 AM
RE: Replicating a path - by Zero01 - 04-30-2023, 04:49 PM
RE: Replicating a path - by Krikor - 04-30-2023, 09:20 PM
RE: Replicating a path - by Zero01 - 05-02-2023, 06:32 PM

Forum Jump: