Inkscape.org
Creating New Extensions Convert path nodes to curve action
  1. #1
    Vera_ Vera_ @Vera_
    *

    Hello, I need to convert all path nodes to curves automatically with a script, I know that there is a button on the UI to do that but is not enough in my case, do you know if there an action to do that, and in that case could you provide an example? Im a bit new to inkscape actions and haven't been able to make too many successfull attempts. Thanks!

    If you are wondering why I need this, is to make possible this kind of atrocities:

    Inka2
  2. #2
    xR2 xR2 @xR2
    I am not new to inkscape but I haven't done anything similar to that, if I understood you correctly. But I may suggest you use an Extension called Simple Scripting: https://inkscape.org/~pakin/%E2%98%85simple-inkscape-scripting as you may be able to directly input your script.
  3. #3
    Vera_ Vera_ @Vera_

    @xR2 hello and thanks for your reply, it seems like it is deleted here in the forum, but I was able to read it on the email, I checked this scripting tool but I don't know if it will help, since the node to curve functionality is an inkscape's code, so I would need to call it from an inkscape API like actions I believe, but thanks anyways!

  4. #4
    Vera_ Vera_ @Vera_

    idk who moved this post to "Creating new extensions" but doesn't feel right, I'm almost sure I created it on "Beyond the basics"

  5. #5
    inklinea inklinea @inklinea⛰️

    I don't think this is possible via an action.

    I cannot find any action for changing the node or segment type.

    I may be possible to do it using the extension system api : https://inkscape.gitlab.io/extensions/documentation/source/inkex.paths.html?highlight=curve#

    Generally, the best way is to try an find an example extension which contains one of the method / function names by using find in files. However I was not able to find one in the core extensions.

    This basically does something similar to what you want - but in reverse - https://github.com/eridur-de/mightyscape-1.X/blob/master/extensions/fablabchemnitz/convert_to_polylines/convert_to_polylines.py

     

     

     

  6. #6
    Vera_ Vera_ @Vera_

    @inklinea thanks for your answer, I'll take a look!

Inkscape Inkscape.org Inkscape Forum Creating New Extensions Convert path nodes to curve action