Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Q&A] How to change naming/export order. #106

Open
someonenameguy opened this issue Aug 13, 2023 · 3 comments
Open

[Q&A] How to change naming/export order. #106

someonenameguy opened this issue Aug 13, 2023 · 3 comments

Comments

@someonenameguy
Copy link

So I like if I could flip the order of layers when exporting, as I used the 'Renamed' procedure but my layers are in descending order, so my exported layers are numbered in reversed...

I have a batch naming tool so it isn't a big problem, but it would be nice to be able to flip the order.

@someonenameguy someonenameguy changed the title [Enhancement] Ability to change layer order. [Enhancement] Ability to change layer/export order. Aug 13, 2023
@kamilburda
Copy link
Owner

kamilburda commented Aug 13, 2023

If you use the number pattern, e.g. image[001], you can instead type image[000, %d] (or e.g. image[0, %d] if you do not wish to have extra zero padding), which will number the layers in reversed order. The image part can be replaced with [layer name] if you need to preserve the original layer name.

@someonenameguy
Copy link
Author

someonenameguy commented Aug 14, 2023

Noted I try it next time I need to export.
I'll leave this issue open for others that might need it.

image[000, %d] (or e.g. image[0, %d]

Also that's python syntax right?

@kamilburda
Copy link
Owner

kamilburda commented Aug 14, 2023

It's custom syntax I made for the plug-in, documented here. The % arguments are hard-coded and specific to each field.

If you need more customization, the [replace] field might be of use, which uses the Python regular expression syntax. It's also possible to chain multiple Rename procedures if case you need to use regular expression substitution multiple times.

@someonenameguy someonenameguy changed the title [Enhancement] Ability to change layer/export order. [Q&A] Change naming/export order. Aug 17, 2023
@someonenameguy someonenameguy changed the title [Q&A] Change naming/export order. [Q&A] How to change naming/export order. Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants