Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Export paths similar to ofn-export-layers.py
#9
(04-24-2021, 03:58 PM)Krikor Wrote: Hi,

It would be possible; and if so, how could i add a separator between the indexed number and the total number in the file name generated by the parameter: {numDown1: 03d} {count}?

I tried something like {numDown1: 03d} {"-" count} and {numDown1: 03d} {- count}, but it didn't work.

The intention is to create a separator for the generated names like:
001127
002127
003127
...
127127
to something like 001-127. etc.

Thx in advance!

Of course, but the - separator isn't part of the format specifications, so just put it outside the braces {numDown1:03d}-{count}. The pattern is a string where what is between {} is replaced by values, but whats is outside the {} is used literally. You can use a pattern like: Path {numDown1} of a set of {count} paths.

PS: You likely want to avoid the  leading space in your : 03d formats.
Reply


Messages In This Thread
RE: Export paths similar to ofn-export-layers.py - by Ofnuts - 04-24-2021, 05:14 PM

Forum Jump: