10-12-2022, 08:52 PM
OK time for the big tease... with a slight modification to my ofn-gradient-path, making railroad tracks can be a snap.
You define a path which is the center of the tracks
You create a sleeper brush and use Edit > Stroke path with an adequate spacing and Track direction dynamics to layout the sleepers.
You prepare a half railtrack gradient start starts with transparency and ends with the track.
You use ofn-gradient-along-path to draw the track, using the center path (width should be
One could even go as far as scripting the whole thing...
Now, I say it's a tease, because the current published version of ofn-gradient-along-path doesn't support transparency inside the gradient. With the current OGAP, you have to create the tracks using OGAP on a new layer. The center of the gradient will be opaque, so you have to stroke the path again with the Eraser tool to erase the center. So you have one more step but it's still doable.
I'll try to have the new OGAP available soon (but this change opens a big can of worms that I have to check out).
You define a path which is the center of the tracks
You create a sleeper brush and use Edit > Stroke path with an adequate spacing and Track direction dynamics to layout the sleepers.
You prepare a half railtrack gradient start starts with transparency and ends with the track.
You use ofn-gradient-along-path to draw the track, using the center path (width should be
One could even go as far as scripting the whole thing...
Now, I say it's a tease, because the current published version of ofn-gradient-along-path doesn't support transparency inside the gradient. With the current OGAP, you have to create the tracks using OGAP on a new layer. The center of the gradient will be opaque, so you have to stroke the path again with the Eraser tool to erase the center. So you have one more step but it's still doable.
I'll try to have the new OGAP available soon (but this change opens a big can of worms that I have to check out).