If the 0th tile space in an incomplete tile matrix is empty and to be filled in with a filler tile, restructure_layer_matrix() throws a permission error.
For example, in the tile matrix below, empty tile spaces are represented by dashes.
In this instance, if tile 5 is to be the filler tile for spaces 0, 1, 8, a permission error occurs.
The offending line is:
os.rename(tile_path + tile, tile_path + layer_name + t + '.png')
Temporary solution is to place your filler tile in the 0th position, as there should be no reason you couldn't place the filler tile in that space, if admittedly inconvenient to reset your artboards.
If the 0th tile space in an incomplete tile matrix is empty and to be filled in with a filler tile, restructure_layer_matrix() throws a permission error.
For example, in the tile matrix below, empty tile spaces are represented by dashes.
In this instance, if tile 5 is to be the filler tile for spaces 0, 1, 8, a permission error occurs.
The offending line is:
os.rename(tile_path + tile, tile_path + layer_name + t + '.png')Temporary solution is to place your filler tile in the 0th position, as there should be no reason you couldn't place the filler tile in that space, if admittedly inconvenient to reset your artboards.