Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Forest Experiment

  1. #11

    Default

    I don't think so, CartoGeo, just actions. I don't use Inkscape but I'd love to be able to get the software I use to make something like this. Great work Hai....I may just have to download Inscape just for this script. The fear of yet another learning curve of yet another bit of software scares me though

  2. #12
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,245
    Blog Entries
    8

    Post

    Gimp has a python interpreter and I use perl-magick which has a lot of commands all scriptable too.

  3. #13
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Post

    The Ruby script is external to Inkscape and doesn't use the Inkscape plugin interface. You have to save the file, edit the script to indicate the ids of the objects to manipulate, and then run the script on the file.

    Of course, this isn't all that different from what they Python plugins that come with Inkscape do, they just follow a particular interface that lets Inkscape figure out their command line parameters so it can make a nice dialogue box. Inkscape then serializes the document to SVG just as it would when saving, runs it through the script, and loads the output. It's not particularly efficient, but it's easy and you can use the plugins without Inkscape.

    I could probably make my script work as an Inkscape plugin with a bit of work.

  4. #14

    Post

    Quote Originally Posted by Hai-Etlik View Post
    I could probably make my script work as an Inkscape plugin with a bit of work.
    I did it with python without knowing anything about python. It wasn't too bad as a good example is provided. Basically, the XML is exposed as a DOM tree, and you can work with it at that level.

    ...I think...

    -Rob A>

  5. #15
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Post

    Now working on a repeating pattern. Here's what I have so far.
    Attached Images Attached Images
    Last edited by Hai-Etlik; 09-20-2009 at 02:37 AM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •