Hello, I need help putting together a button in Directory Opus that can be used to combine multiple PNG files into a single PNG sprite sheet. Currently I'm achieving this with a free program called ShoeBox (renderhjs.net/shoebox). This is the command line that the program provides to combine selected PNGs into a single sprite sheet (in this example, the files are called testfile_01.png to testfile_04.png)
Is it possible to turn this command into a Dopus button? I'm a complete newbie when it comes to Dopus scripting so I apologize in advance if this is a silly question.
Any help is greatly appreciated.
Yes! I'd like the pass the paths of the selected files into it.
Basically what I'd like to do is selected a few PNGs, click this button and it'll automatically combine those PNGs into a single sprite sheet. Would this be possible?
The xml file is not important.
The problem is that {allfilepath} will separate the filepaths with spaces, and it looks like you need them to be comma separated. At the moment there's no way to do that easily but we will add the ability in the next Opus 12 beta.
An alternative would be a script that built up the command line and then ran it.