Author Topic: how to erase a pattern I've set?  (Read 2535 times)

December 02, 2017, 09:15:12 PM
Read 2535 times

maisieinforestburg

  • Jr. Member

  • Offline
  • ***

  • 27
Hi, I've got a number of patterns I've set, they all have numbers

I'd like to rename some of them, and delete some of them. How do I do that?

Thanks!

December 03, 2017, 04:59:14 AM
Reply #1

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

With the xml editor you can rename custom pattern fills stored in the document (Shift+Ctrl+X). Upon testing it seems if you rename a pattern after it's set, the object will switch to no fill? Not good, because then you need to readjust the pattern handles.

The xml editor can also be used to remove unwanted pattern fills, however that may not be the best for the use.
In the file menu, there is a cleanup document option that removes unused definitions -including any pattern fills you want to get rid of.
Keep in mind if you use that to have all the fills to be preserved assigned to objects.
« Last Edit: December 05, 2017, 03:26:14 AM by Lazur »

December 05, 2017, 01:34:58 AM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Yes, I agree with Lazur that you can delete the unused patterns with File menu > Clean Up Document.  However, be careful.  If a pattern is not being used in the file (if it's not applied to an object in the file), it will be deleted by this process.  So for all the patterns you want to keep, make sure they are being used, even if it's just a simple rectangle or circle.

As for giving them a name, it can't be done currently.  But here's the feature request:  https://bugs.launchpad.net/inkscape/+bug/171952  To help push this up to developers attention, click "This bug affects...." which is in green text, near the top.  Also gives it more weight if you subscribe to the bug (in the column on the right, click "You and not subscribed....." (also is in green text)).  (However, subscribing to it means you'll get an email when someone makes a new comment.)

However, there might be another way to handle the patterns.  It seems like I've heard about a way to add patterns to Inkscape.  The patterns that you've created are only available in that one document.  Unless you make the document into a template, they will only exist in that file.  But it seems like I've heard about a way to add them to Inkscape, so they are available in any document.

Hhmm, after some investigation, it's not obvious how to do it.  When you open patterns.svg, the file is blank.  Looking in the XML Editor, the patterns still are not listed or enumerated.  All it says is "Seamless texture provided by FreeSeamlessTextures.com".  It seems to reference a JPEG image, in the XML, but I'm not sure how to display it.  I think there should be a way to display it, but I don't know how.  I'm thinking if I could display it, I'd try adding a test pattern to it.  But after that, I'm not sure how to get the new file into the XML Editor.  Seems like it should work in theory, but the logistics are elusive.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

December 06, 2017, 08:37:25 PM
Reply #3

maisieinforestburg

  • Jr. Member

  • Offline
  • ***

  • 27
I discovered that the pattern was not there on new documents when I went to check, so am happy I don't have to worry about clogging my patterns with obsolete ones...... :hd:

Thanks for the answers, I appreciate it :)