-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Sprite tag cli option
Right now, it is only possible to add tags to sprites through the gui.
It would be nice to have it as an option for the cli as well.
For example, i wanted to automatically add a tag through the cli(like in a buildpipeline), to add some metadata to the sprite.
I'm thinking of 2 ways this could be added.
-
Seperate parameter
--tags spritetag1, spritetag2, ...
This would map to each sprite entry in the input parameter.
Not ideal since it needs some validation or way to skip tags(maybe empty between commas) -
Some way of attaching the tag with each sprite entry like so:
rtexpacker --input sprite1.png:tag1, sprite2.png:tag2
this looks a bit cleaner imo.
Relative file path in project .rtp file.
For source control it would make more sense to have the sprites referenced in the rtp project to be relative to the project file.
Possible solution:
When having a new project, internally it has the absolute paths. but when saved to a project, it changes to a path relative to the saved project file.
Ideally this would be an option that can be turned on or off for a project.
Full or relative filepaths in the exported descriptor file.
Right now, it seems only the filename gets exported to the descriptor file.
Making it impossible to distinguish different sprites from different folders with the same name.
An option to add this would also be nice.
Possible solution:
- Option to change it from filename to full/relative path
- new field which has the path(maybe less ideal since it breaks the format the files have now.)