Git Product home page Git Product logo

Comments (4)

lifelike avatar lifelike commented on August 23, 2024

This is exactly why I thought allowing up to.1000x1000 was already overkill.

Does it work better to run the extension from the command-line to generate a svg and then open it on inkscape?

Otherwise turn off all layers you do not absolutely need.

Not sure more can be done?

from hexmapextension.

sennewood avatar sennewood commented on August 23, 2024

How do I run the extension via CLI?

I tried: inkscape file.svg --verb=pelles.effect.hexmap --cols=3 --rows=3
but I got: ** (inkscape.exe:5276): WARNING **: Invalid option --cols=3

from hexmapextension.

lifelike avatar lifelike commented on August 23, 2024

I never tried Inkscape's verb flag to run extensions like that. Probably something I have to look into at some point. But I frequently run my extensions from the command-line as just simple python scripts. The inkex.py file from inkscape is required for it to work, but other than that it should be fully stand-alone.

If you find inkex.py (it could be somewhere like /usr/local/share/inkscape/extensions... but just search, it is somewhere) you can copy it to wherever hexmap.py is and run something like:

./hexmap.py --help
(prints out a lot of help)

To actually run it you must have some (empty) svg-file for it to operate on. I guess like file.svg in the previous comment. There is one included with the extension in the svgtest subdirectory as well, so something like this:

./hexmap.py -c 1265 -r 765 --layer-grid=true --layer-fill=true svgtests/input/test.svg > hugehexmap.svg

(Guess it will look slightly different in Windows.)

You can also set PYTHONPATH=/path/to/directory/where/inkex.py/is to run it without copying the file.

from hexmapextension.

lifelike avatar lifelike commented on August 23, 2024

Closing this as there is not much to do. Inkscape will die if you create too many objects to render compared to how much RAM your computer has.

from hexmapextension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.