Inkscape.org
Creating New Extensions Writing extensions in Python 3
  1. #1
    inklinea inklinea @inklinea⛰️

    Hello, I am a bit confused about starting out to write extensions ( initially for my own use ) in Inkscape.

    I have some experience writing in javascript, I have also hacked together a couple of scripts for Gimp in Python to carry out batch processing for my own use in the past.

    I really need to start learning Python from scratch, but have been put off by the number of broken scripts ( not Inkscape related ) on the internet due to the Python 2/3 apocalypse.

    Is it enough to just start learning Python 3, to be able to produce Inkscape 1.0+ extensions ? 

    Thanks for any advice.

  2. #2
    Scott Pakin Scott Pakin @pakin
    inklinea

    Is it enough to just start learning Python 3, to be able to produce Inkscape 1.0+ extensions ?

    Personally, I'd say yes.  Given that Python 2 reached end-of-life a year ago it's probably not worth spending a lot of time on Python 2.  Furthermore. basic Python 3 code tends to run under Python 2, anyway.

  3. #3
    inklinea inklinea @inklinea⛰️

    Thanks for the reply, I'm going to have another look at Python 3+ see what I can learn :)