setting z-order by position?

Post questions on how to use or achieve an effect in Inkscape.
User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

setting z-order by position?

Postby RobA » Fri Aug 10, 2007 2:03 am

Is there a way to "automatically" set z order of a bunch of objects based on their position?

Like this:

Image

-Rob A>

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: setting z-order by position?

Postby microUgly » Fri Aug 10, 2007 7:20 am

I could be wrong, but I don't believe so.

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: setting z-order by position?

Postby RobA » Fri Aug 10, 2007 11:15 pm

Can anyone point to a good scripting reference then? This would seem rather trivial to actually script, if I actually new HOW to script in Inkscape (I have used GIMP's script-fu... is there something similar?)

-Rob A>

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: setting z-order by position?

Postby heathenx » Sat Aug 11, 2007 12:55 am

i cannot help you with the z-order but if your end result is to achieve the image at the bottom then you can use "create tiled clones" to array the starting circle. i was able to duplicate the bottom image.

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: setting z-order by position?

Postby RobA » Sat Aug 11, 2007 1:37 am

That was really just an example that was easy to set up :)

I'm really trying to use Inkscape for fantasy mapping (see http://cartographersguild.com/).

SO I'd like to be able to draw in mountains or trees (as an example) where I want them without worrying about overlapping, then just have then z-ordered nicely, like this:

Image

-Rob A>

P.S. HeathenX- love the screencasts!

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: setting z-order by position?

Postby heathenx » Sat Aug 11, 2007 2:03 am

hmm...would stamping work better for you then? for instance, highlight one of your mountains (or tree), hold the space bar down, and left-click randomly on your screen.

make sure not to hold the space bar down and the left mouse button while you drag at the same time otherwise you'll generate a path of mountains.

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: setting z-order by position?

Postby RobA » Sat Aug 11, 2007 3:00 am

That was done with stamping.

The problem is that it is very hard to always stamp from UL to LR. For example, if I want to add more mountains North of a ridge, I first have to stamp them then move them behind the existing ones, as required. Hence the original request for z-order by position :)

Sorry for not being clear.

-Rob A>

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: setting z-order by position?

Postby heathenx » Sat Aug 11, 2007 3:09 am

don't EVER draw mountains or trees...problem fixed. :lol:

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: setting z-order by pohttp://mail.google.com/mail/?tabsition?

Postby RobA » Fri Jan 25, 2008 7:01 am

Just an update-

I wrote an extension to do this, it is attached to a wishlist entry at launchpad. hopefully it will make it into either .46 or .47 It works with .46dev

https://bugs.launchpad.net/inkscape/+bug/182002

Examples are also attached there.

-Rob A>

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: setting z-order by position?

Postby capnhud » Fri Jan 25, 2008 7:16 am

I seen when this was mentioned on the mailing list, but for the life of me I could not figure out how useful this was until I started thinking about images such as these and wondered would it help in setting the objects in an images such as those?


Return to “Help with using Inkscape”