Jappaloe63 wrote:
Could someone tell me how this works?
I haven't seen this one before so don't have Tim's instructions, but from reading the code:
Menu: Python-Fu -> Custom Railing
Run the plugin on the layer containing the picture you want to put on the railings.
In the plugin dialog box, you need to give it:
".xcf railing file:"
Enter the .xcf image that is your railings file, the plugin will load this image.
This is a second image that defines the railings.
The plugin will use the active layer from this image which should be a picture of railings.
The image also needs to contain paths that define where the railings are.
If you don't have Tim's example .xcf railings file you will need to find your own railings picture and make the paths by hand.
It only uses the first stroke in the path so you need to make one path for each rail.
It uses specific anchors of a path:
1st anchor: Top left corner of one rail.
2nd anchor: Top right corner of the rail.
3rd anchor: Bottom right corner of the rail.
4th anchor: You can skip this if you have chosen "Use 3 Points instead of 4 (Calculate 4th points):" Otherwise it should be the bottom left corner.
"Use 3 Points instead of 4 (Calculate 4th points):" is explained above.
What the plugin does:
Makes a new image and puts the railings picture onto the new image.
Copies a slice from your picture to the new image.
Transforms the perspective of the slice to match a rail as defined by an above path.
Repeats the copy slice and transform for each of the other rails.
PS: Forgot to say the paths should be the order: From top of the paths dialog down should be rails from right to left.