Search the Community
Showing results for tags 'python'.
Found 4 results
I was curious to know if there are any hopes that down the road a python or some sort of scripting API will be available for Affinity Applications like Designer/Photo. Working in the film/vfx/games industry for over 10 years now, one of the biggest headaches is developing pipeline tools for Adobe applications due to their constraints and poor choice of Java implementation for API. I would love to see a modern API like python supported in Affinity applications. Thanks guys, keep up the great work!
I recently discovered that Affinity Designer will copy paths to the clipboard as SVG Documents, so I decided to use it for some simple automation. I wrote a simple python script to simplify SVG paths: https://gist.github.com/NickBeeuwsaert/004851e7f7571b288f3c And here is a example of it in action: before: Copy path with Command+V execute on command line: $ pbpaste | python svg_simplify.py | pbcopy And then paste back into Affinity Designer: I just thought it might be a cool tip for anyone who uses SVG optimization tools for web development... I'd like to set up a Automator script to streamline it but Automator is acting up for me today :/ Also: If you have imagemagick and potrace installed (usually via brew), you can rasterize a image from AFD using this (after copying the image from AFD) using: $ pbpaste | convert svg:- pnm:- | potrace -s - -o - | pbcopy (P.S. I hope this is the right area of the forum to post...)