Hiding everything outside document boundaries

Post questions on how to use or achieve an effect in Inkscape.
tuisu
Posts: 5
Joined: Fri Jun 05, 2009 8:08 pm

Hiding everything outside document boundaries

Postby tuisu » Mon Sep 14, 2009 6:41 pm

Hey,

I was wondering if there is a way to hide everything that is outside of the document boundaries?

Let say you are doing a illustration and want some objects to be partially visible at the edges of your work.

But when you place some of your objects at the border of your work, they still get displayed outside of the work area also, like this:
hide artboard 1.png
hide artboard 1.png (38.8 KiB) Viewed 15258 times


So I was wondering if there is a way to toggle (perfect would be a keyboard shortcut) showing/hiding everything outside of the document, like this:
hide artboard 3.png
hide artboard 3.png (31.58 KiB) Viewed 15258 times


As a workaround I'm using a huge rectangle in the top layer with a document sized hole in (it's yellow only for illustration purposes, it's background color usually), like this:
hide artboard 2.png
hide artboard 2.png (14.8 KiB) Viewed 15257 times


But this workaround is a bit tedious cause I have to create it for every new document. Is this function available and I've missed it somehow? Is there a better way? Should this go for a feature suggestion?

Thanks

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Hiding everything outside document boundaries

Postby prkos » Tue Sep 15, 2009 6:21 am

You can use Clipping. Group everything inside the page, or just the objects protruding out. Create a rectangle that covers the page, use snapping to page corners if it's there in your version, otherwise adjust the width, height and position using boxes on Selector toolbar for example. Now select rectangle and the group, and go to Object > Clip > Set.

The group will be clipped to rectangle boundaries. Now if you want to edit the objects inside the group just double click the group, or Ctrl click to enter the group. And if you want to create more objects that should be clipped to page just draw them inside the group.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

notmyfault2000
Posts: 12
Joined: Sun Sep 13, 2009 3:05 pm

Re: Hiding everything outside document boundaries

Postby notmyfault2000 » Tue Sep 15, 2009 1:40 pm

Your suggestion does not answer his questions, as he already has a similar workaround.
tuisu wrote:But this workaround is a bit tedious cause I have to create it for every new document. Is this function available and I've missed it somehow? Is there a better way? Should this go for a feature suggestion?

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Hiding everything outside document boundaries

Postby prkos » Tue Sep 15, 2009 11:53 pm

I guess not then, there isn't a function that does this, although it might be possible to write an extension for it, that clips, masks or cuts off everything outside page boundaries.

Although if your goal is png and not svg you can easily export only the Page area, just choose that option in the Export dialogue.

If this is not what you need please report a request in the bug tracker with all the details how you expect it to work https://bugs.launchpad.net/inkscape/
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

tuisu
Posts: 5
Joined: Fri Jun 05, 2009 8:08 pm

Re: Hiding everything outside document boundaries

Postby tuisu » Wed Sep 16, 2009 12:24 am

Thanks for the replies.

I'm aware that I can export only the drawing area and that's not the reason I was looking for this function. The reason is that I'd like to be able to have a quick preview of the final work while working, so I can see if everything is the way I want it to be. It's a bit like the preview function in InDesign (press W while working on your stuff) - it will hide everything outside the document, all guides, grids etc but other than that you can still edit everything etc, very useful in my opinion.

I'll make sure the feature request gets submitted.

Slow Dog
Posts: 180
Joined: Wed Sep 24, 2008 7:51 pm

Re: Hiding everything outside document boundaries

Postby Slow Dog » Thu Sep 17, 2009 12:59 am

A duplicate window (View->Duplicate Window) should do what you want. Set the duplicate window size equal to page boundary, and turn off grid and guide viewing (View-Grid, View->Guides).

I say should, because the showing guides doesn't appear to be window independent (whereas Grids are); that's a bug or unimplemented feature, I guess.

Pureon
Posts: 47
Joined: Fri Aug 21, 2009 4:44 am

Re: Hiding everything outside document boundaries

Postby Pureon » Thu Sep 17, 2009 1:40 am

tuisu I use the same 'huge rectangle with hole' technique as you do in both Inkscape and Illustrator. I agree with you it would be a good feature especially for those who use the space outside document boundaries to store unused pieces.

Will you report a request as advised above?


Return to “Help with using Inkscape”