I just played with it (creating cloned squares) and the cloned squares seem to be ordered like so:
[A][E][J][N] [B][F][K][O] [C][H][L][P] [D][I][M][Q]
and are named use[XXXX].png where XXX is an incremental (odd?) number, i.e. 3651, 3653, 3655, etc.
I ran it through a batch renumbering program ad quickly got it to square00001.png, square00002.png, etc.
It should be simple enough to crunch them through a little python script to renumber them how you want.
-Rob A>
On Tue, Dec 2, 2008 at 5:33 PM, Joshua Facemyer <jfacemyer@...155...> wrote:
I'm not sure how the naming of batch exports works, but I would imagine it's in a linear order. If you could figure out the sequence, you could then just use a script to rename the exported pngs appropriately.
I know it's not what you want, really, but I don't know if there's a better way to do it.
JF
Alessandro Antonello wrote:
Sorry, guys.
This is not a solution. I tried a script because I need that the peaces have an specific name when exported. Found what part is an exported peace and rename the file to something I will need is not an alternative. There will be more than 6 thousands of peaces in the end. I really think that an script is the best solution.
2008/12/2 Terry Brown <terry_n_brown@...12...>:
On Tue, 2 Dec 2008 14:01:56 -0200 "Alessandro Antonello" <antonello.ale@...155...> wrote:
Hi all.
I am new in this mailing list and I want some help on writing a little script that I despereted need. I have a huge SVG file. Its resolution is 20000+ by 38000+ and I need to slice it in little PNG peaces with 180x150 pixels. I wrote an batch file (I am a Windows user) that automate this but since it calls the inkscape in the command line to every peace that need to be exported it is very, very, very slow. Some one can guide me in writing a script that could do this in a little less time? I am currently using the version 0.46 of Inkscape in a Windows XP.
You could just use the tiled clone thing to make a lot of little rectangles, make them invisible, select them all, and use them with the "Batch export all selected objects" checkbox on the export dialog.
Cheers -Terry
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user