I'm trying to figure out how to avoid having duplicate Z-Layers after doing a trace bitmap and I'm trying to avoid to do some manual editing.
It's for the multiple difference script I'm able to run my extension perfectly if each path is in a separate layer however avoiding having to split the vector to run correctly just takes too much system resources.
Shawn
How to avoid duplicate Z-Layers(order of stack in inkscape)?
-
- Posts: 70
- Joined: Fri Apr 22, 2016 8:32 am
Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?
Are you talking about writing a new extension? Or can you be more clear what you're doing?
The only way not to have objects stacked up in the trace, would be to use a single scan option (one single result). Or there's an option to have all the scan objects laid out in a grid, if you don't want them stacked up (just deselect Stack Scans).
The only way not to have objects stacked up in the trace, would be to use a single scan option (one single result). Or there's an option to have all the scan objects laid out in a grid, if you don't want them stacked up (just deselect Stack Scans).
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?
Yep, it's the 'Stack Scans' option, Shawn.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
-
- Posts: 70
- Joined: Fri Apr 22, 2016 8:32 am
Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?
Well here's the thing I have stack scan on and I am still getting parts on same Z-Layers... I'll re-install my inkscape I probably bugged the hell out of it and corrupted something inside of it.
As for rebuilding the extension it's more of a command line that will loop through all and as of yet if I have a 256 layers and run it, i'll have a seamless image with nothing overlapping, if someone able to convert the final results into 1 usable extension great however I don't think that would be resource possible as for 256 Layers we're talking about over 32896 difference compares.
I'll stick to the main conversation of the plug-in from now on and I should of figured that the z-layer issue wasn't a flaw in the tool but something else.
Shawn
As for rebuilding the extension it's more of a command line that will loop through all and as of yet if I have a 256 layers and run it, i'll have a seamless image with nothing overlapping, if someone able to convert the final results into 1 usable extension great however I don't think that would be resource possible as for 256 Layers we're talking about over 32896 difference compares.
I'll stick to the main conversation of the plug-in from now on and I should of figured that the z-layer issue wasn't a flaw in the tool but something else.
Shawn
Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?
Well, I doubt that reinstalling Inkscape would solve the problem. Not unless you actually edited the source code, or something.
But I don't understand what you mean about parts on the same z layers. Can you show us an SVG file where this is happening? (a small example, not one with 256 objects)
As far as I know, it's absolutely impossible for 2 objects to have the same z-layer. I mean, we're really making up a word "z-layer" that doesn't actually exist.
OOHHhhh! I think you might be talking about a Group. When Inkscape performs a trace (using Trace Bitmap) the result is always Grouped. And grouping does exactly that -- it puts all the scans together into a single object, so they all are occupying the same "z-layer".
All you need to do is Ungroup. Then they will have as many "z-layers" are there are objects
But I don't understand what you mean about parts on the same z layers. Can you show us an SVG file where this is happening? (a small example, not one with 256 objects)
As far as I know, it's absolutely impossible for 2 objects to have the same z-layer. I mean, we're really making up a word "z-layer" that doesn't actually exist.
OOHHhhh! I think you might be talking about a Group. When Inkscape performs a trace (using Trace Bitmap) the result is always Grouped. And grouping does exactly that -- it puts all the scans together into a single object, so they all are occupying the same "z-layer".
All you need to do is Ungroup. Then they will have as many "z-layers" are there are objects

Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?
(Turning stack scans *off* would make it so the individual colors do not overlap, if that is what you want, Shawn)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
-
- Posts: 70
- Joined: Fri Apr 22, 2016 8:32 am
Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?
@Moini
Sorry for the delay of response, I re-installed inkscape and re-opened my file and re-saved it and everything worked out correctly this time, I was reading some of inkscape's files and well I probably autosaved something that went horribly wrong but you did provide me with the best way to deal with excessively small difference comparisons with un grouping. I also should have a dos batch file done soon that will let you cycle through all paths to only keep the difference, it's not the most optimized way and only works under windows but it works for what some wanted the multi difference to do the good thing though is I'm sure the dos batch steps are possible to convert for linux or mac.
Shawn
Sorry for the delay of response, I re-installed inkscape and re-opened my file and re-saved it and everything worked out correctly this time, I was reading some of inkscape's files and well I probably autosaved something that went horribly wrong but you did provide me with the best way to deal with excessively small difference comparisons with un grouping. I also should have a dos batch file done soon that will let you cycle through all paths to only keep the difference, it's not the most optimized way and only works under windows but it works for what some wanted the multi difference to do the good thing though is I'm sure the dos batch steps are possible to convert for linux or mac.
Shawn