Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-tiles & ofn-export-layers
#3
(08-10-2017, 08:25 AM)rich2005 Wrote: It is a bit 'picky' about image size http://i.imgur.com/V3hnbHf.jpg

Cropping image and taking a stage further. Made the tiles. Now Reassemble

Re-assembling with some tool, Hugin, NIP2 or such as (heaven forbid Wink ) arrange-layers-0.2.py  http://i.imgur.com/72UnCLJ.jpg

Top left corner is Tile 01-01 - correct. Then the default numbering is column-wise. I find it more usual to order row-wise, that might just be me but if the Format includes a simple drop-down row-wise/column wise as well as editable that might save a few mistakes editing the values.

1) Yes. But if I have to deal with partial tiles, this gets messy:
  • Do I make partial tiles or ignore them?
  • Where do I take them? Top/Bottom? Left/Right?
  • Or do I center and shave off the margins? 
To cover all this the dialog and logic gets very complicated. While the user can just crop or extend the layer so that the script will cut the right tiles. Then there is also the option to ask for tile sizes instead of tile count...

2) That's the whole point of the name format string. If you use "{row0}-[column0} your tiles are naturally sorted by row, but you can also use "{column0}-{row0} to get names sorted on columns. I have also added two formatting variables tileRC and tileCR which are just sequence numbers (so if you produce 10x20 tiles, then will go 1..200), one with row-first and one with column-first (and of course with 0-based and 1-based versions).
Reply


Messages In This Thread
ofn-tiles & ofn-export-layers - by Ofnuts - 08-09-2017, 09:15 PM
RE: ofn-tiles - by rich2005 - 08-10-2017, 08:25 AM
RE: ofn-tiles - by Ofnuts - 08-10-2017, 12:30 PM
RE: ofn-tiles - by Ofnuts - 08-10-2017, 01:27 PM
RE: ofn-tiles - by rich2005 - 08-10-2017, 05:02 PM
RE: ofn-tiles - by Ofnuts - 08-10-2017, 05:03 PM
RE: ofn-tiles - by RayArdia - 08-11-2017, 03:10 PM
RE: ofn-tiles - by Ofnuts - 08-11-2017, 04:55 PM
RE: ofn-tiles - by rich2005 - 08-11-2017, 06:33 PM
RE: ofn-tiles - by Ofnuts - 08-21-2017, 07:12 PM
RE: ofn-tiles - by jahf - 12-15-2021, 04:34 AM
RE: ofn-tiles - by Ofnuts - 12-15-2021, 07:43 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 12-12-2017, 11:28 PM
RE: ofn-tiles & ofn-export-layers - by meetdilip - 12-07-2021, 08:37 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 12-07-2021, 11:31 AM
RE: ofn-tiles & ofn-export-layers - by meetdilip - 12-07-2021, 01:06 PM
RE: ofn-tiles & ofn-export-layers - by Krikor - 12-15-2021, 01:27 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 12-16-2021, 09:56 AM
RE: ofn-tiles & ofn-export-layers - by Krikor - 12-16-2021, 06:00 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 01-17-2022, 06:27 PM
RE: ofn-tiles & ofn-export-layers - by tilesUser - 01-19-2022, 07:31 PM
RE: ofn-tiles & ofn-export-layers - by layolayo - 03-17-2022, 02:15 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 03-17-2022, 08:42 PM
RE: ofn-tiles & ofn-export-layers - by layolayo - 03-18-2022, 12:50 PM
RE: ofn-tiles & ofn-export-layers - by rich2005 - 03-18-2022, 04:30 PM
RE: ofn-tiles & ofn-export-layers - by layolayo - 03-18-2022, 05:03 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 01-08-2023, 12:26 PM
RE: ofn-tiles & ofn-export-layers - by Murxel - 02-21-2023, 01:13 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 02-21-2023, 04:44 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 10-18-2023, 07:57 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 10-19-2023, 07:23 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 10-20-2023, 07:18 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 10-24-2023, 03:27 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 12-19-2023, 08:36 AM
RE: ofn-tiles & ofn-export-layers - by Katuend - 11-02-2024, 11:31 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 11-03-2024, 12:58 AM
RE: ofn-tiles & ofn-export-layers - by Katuend - 11-03-2024, 10:10 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 11-08-2024, 05:33 PM

Forum Jump: