Inkscape.org
Beginners' Questions How to save document properties settings?
  1. #1
    Chron Chron @Chron

    I always want to open inkscape with a checkerboard background but when I open different images it gets reverted to default white eye-straining background. Is there a way to change its default settings?

  2. #2
    brynn brynn @brynn

    Haha!  To me, the checkerboard background is eye straining!

    You can make either a custom template, or a custom default document.  Here's a good tutorial:  https://libregraphicsworld.org/blog/entry/using-templates-in-inkscape

    But we're here if you have questions.

  3. #3
    Chron Chron @Chron

    It gets reverted back when I open svg with inkscape.

  4. #4
    brynn brynn @brynn

    As I said, you need to make either a custom template, which uses the checkboard background, or you need to make a custom default document, which uses the checkerboard.  Then you can always open that template or custom default doc, and it will always have the checkerboard.

    If you're talking about opening existing files (rather than a new blank file) it's because that file does not have a checkboard background.   There is no way to collect all your exising SVG files and tell them all to have a checkerboard background.

    There's no way to fix existing files, except one by one.  At least, not that I know of.  Maybe someone else knows some kind of trick?

  5. #5
    Chron Chron @Chron
    brynn

    If you're talking about opening existing files (rather than a new blank file) it's because that file does not have a checkboard background.   There is no way to collect all your exising SVG files and tell them all to have a checkerboard background.

    Yes, that is what I'm talking about. I hope there's a way to change the setting by default.

  6. #6
    brynn brynn @brynn

    No way that I know of.

    You could probably use a script (and/or Inkscape's commandline) and do some kind of batch operation on all the files.  But I don't know anything about writing scripts.

  7. #7
    Chron Chron @Chron

    Don't we have any available scripts that can do that already?

  8. #8
    Patrick Storz Patrick Storz @Ede_123

    The "<sodipodi:namedview>" element in the SVG tree is what you want to be looking at. It's not that hard to modify "by hand" (or a simple script or search&replace operation) once you know what you're looking for.

  9. #9
    Chron Chron @Chron

    Is python the scripting language of inkscape?

  10. #10
    Patrick Storz Patrick Storz @Ede_123

    The primary, yes, although in principle you can also use perl, ruby, or anything you can do or call from shell, see also https://wiki.inkscape.org/wiki/index.php/Extension_Interpreters

  11. #11
    brynn brynn @brynn

    Aah, yes.  I didn't think of writing an extension for this.  But definitely is possible.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions How to save document properties settings?