-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
embroider flag --combine
that combines multiple files into one.
#174
Comments
This is absolutely useful and it's one of the things people totally use pyembroidery to do. The needed routines here are:
NotesSome DST will have 0 real thread colors and PES will have 5, and when you combine them you need the real thread colors in the PES to remain in the correct location which means they are to be placed after the color changes in the DST, but the actual threadlist doesn't include this data. It needs to to pad out the list with nulls and then write out random colors if asked to write a format that requires it. The transformations are needed because when you combine the files you do not always want them stuck overlapped. And the coordinate systems in embroidery is usually that the embroidery center is (0,0). Knowing that you're going to translate by X,Y and then scale by SX, SY, and rotate by R is important to positioning the embroidery where you need it. Include #121 since that's mostly what that code was used for with pyembroidery a non-dependency based quick viewer whether the composing was working well. Some files can have multiple End commands. While it's not yet a thing here, the VP3 reading format actually permits multiple designs to be combined into the same VP3 file. I've not actually seen it used outside of the actual editor Premier+. This shouldn't really be a problem since they are very rare. But, the VP3 file can have multiple 0x02 flags though I made them with the editor, I've never seen anybody use one. Not sure how this would work with composing different embroideries. |
--combine
that combines multiple files into one.
Behaviour could be:
This would take the files "filename.pes" and "filename2.pes" and put them in the same EmbPattern, the affine transformation in @tatarize comment would be requested via |
Since
Then we'd look at the output to see if it matches the predicted result. |
ImageMagick would allow something like I think my code from a while back was: https://github.com/EmbroidePy/pyembroidery-CLI and while don't think I'd code a more modern CLI like that. I'd use optparse stuff and entry points to register the script. I would use that kind of pipeline concept. --
So Assuming that we could do We'd also be able to do There's also some need for information about the file, like how many stitches they have. Which would likely be the same thing by loading all of them and then rather than saving the data from the pipeline you query statistics about it. This almost makes me want to take another stab at a good CLI for the python library. Some of the code here is similar to vpype's pipelining which is quite useful. Make a circle, create a grid of circles, output that grid of circles as an embroidery file. The Python In the end the instructions follow the code, so it's not necessary to define the behavior unless you know how the rest of the commandline stuff works. But, once you have that defined it's really clear what commands do and which commands are needed. |
The PipelineYes a pipeline of flags is what we should aim for. I agree that
I'm not sure the load flag is necessary? I think it's implicit. Batch conversion
The current idea for this was
because
Batch concatenationWe could do this with just a different flag like
without |
Copied from old to do list.
The text was updated successfully, but these errors were encountered: