There are only a couple that show up as command line actions:
If you do:
windows > inkscapecom.com --action-list | findstr yourstring
linux > inkscape --action-list | grep yourstring
You can search for things like 'lpe' or 'effect' or possibly an lpe name.
clone-link-lpe : Creates a new path, applies the Clone original LPE, and refers it to the selected path object-add-corners-lpe: Add Corners Live Path Effect to path
also:
copy
paste-path-effect : Apply the path effect of the copied object to selection remove-path-effect : Remove any path effects from selected objects
I think that's about it.
So in theory you could have a small object off canvas to copy and paste path effect from.
However as with working in the gui, copy and pasting lpe does not work as you expect.
I've not tried any of the above - but I would suspect they work as with extensions - if you are able to call a path effect - probably just uses the last settings when Inkscape was cleanly exited.
Of course it is possible to write an extension to apply a path effect to the current selection, then call that in the command line - but would require a fair bit of work.
I'd actually printed out (> file.txt) the actions list already and read through it, but didn't find anything specifically mentioning specific path effects other than LPE which as far as I had been able to tell were different to the Path Effects in the GUI, and the .org.inkspace things I did find turned out to be the filters.
However, thank you for the above, I'll certainly look further into LPE to see if I can work something out.
Of course it is possible to write an extension to apply a path effect to the current selection, then call that in the command line - but would require a fair bit of work.
I did look into this, but having never scripted in Python it looked a tad too advanced for me.
So, I discovered I was only on 1.2 as Debian hasn't got 1.3 as yet (even in their testing and backports repositories), so in the end I had to use the AppImage which after some trial and error got a working command:
I get a deprecation warning for using --without-gui, but it's a decent workaround until Debian gets 1.3.
Also, setting custom defaults for an LPE results in the command line using those settings, as tested by first converting in 1.3, loading the output file in 1.2 and seeing what LPE settings showed up.
Hi,
Is it possible to add path effects via CLI?
So far, I've only managed to add regular filters as actions and haven't found any reference describing how to do path effects.
Thanks :)
As far as I know ( Inkscape 1.3 )
There are only a couple that show up as command line actions:
If you do:
windows > inkscapecom.com --action-list | findstr yourstring
linux > inkscape --action-list | grep yourstring
You can search for things like 'lpe' or 'effect' or possibly an lpe name.
clone-link-lpe : Creates a new path, applies the Clone original LPE, and refers it to the selected path
object-add-corners-lpe: Add Corners Live Path Effect to path
also:
copy
paste-path-effect : Apply the path effect of the copied object to selection
remove-path-effect : Remove any path effects from selected objects
I think that's about it.
So in theory you could have a small object off canvas to copy and paste path effect from.
However as with working in the gui, copy and pasting lpe does not work as you expect.
I've not tried any of the above - but I would suspect they work as with extensions - if you are able to call a path effect - probably just uses the last settings when Inkscape was cleanly exited.
Of course it is possible to write an extension to apply a path effect to the current selection, then call that in the command line - but would require a fair bit of work.
Thanks for the reply.
I'd actually printed out (> file.txt) the actions list already and read through it, but didn't find anything specifically mentioning specific path effects other than LPE which as far as I had been able to tell were different to the Path Effects in the GUI, and the .org.inkspace things I did find turned out to be the filters.
However, thank you for the above, I'll certainly look further into LPE to see if I can work something out.
I did look into this, but having never scripted in Python it looked a tad too advanced for me.
So, I discovered I was only on 1.2 as Debian hasn't got 1.3 as yet (even in their testing and backports repositories), so in the end I had to use the AppImage which after some trial and error got a working command:
./Inkscape.AppImage --without-gui --actions="select-all;object-add-corners-lpe;export-filename:output.svg; export-do;" input.svg
I get a deprecation warning for using --without-gui, but it's a decent workaround until Debian gets 1.3.
Also, setting custom defaults for an LPE results in the command line using those settings, as tested by first converting in 1.3, loading the output file in 1.2 and seeing what LPE settings showed up.