How to avoid duplicate Z-Layers(order of stack in inkscape)?

Post questions on how to use or achieve an effect in Inkscape.
ShawnWDion
Posts: 70
Joined: Fri Apr 22, 2016 8:32 am

How to avoid duplicate Z-Layers(order of stack in inkscape)?

Postby ShawnWDion » Sun May 08, 2016 9:40 pm

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

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?

Postby brynn » Sun May 08, 2016 10:35 pm

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).

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?

Postby Moini » Sun May 08, 2016 11:11 pm

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)

ShawnWDion
Posts: 70
Joined: Fri Apr 22, 2016 8:32 am

Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?

Postby ShawnWDion » Mon May 09, 2016 1:37 am

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

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?

Postby brynn » Mon May 09, 2016 5:01 am

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 :D

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?

Postby Moini » Mon May 09, 2016 5:25 am

(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)

ShawnWDion
Posts: 70
Joined: Fri Apr 22, 2016 8:32 am

Re: How to avoid duplicate Z-Layers(order of stack in inkscape)?

Postby ShawnWDion » Mon May 09, 2016 12:26 pm

@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


Return to “Help with using Inkscape”