Import Vectors from clipboard SCRIPT

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Shizukuishi
Posts: 77
Joined: Sun Dec 02, 2018 6:56 am
Location: Italy

Import Vectors from clipboard SCRIPT

Post by Shizukuishi »

Hello and I'm so happy to share this super powerful little script, that for me is a real gamechanger! I was working on my project when i had to add new assets on it, but the process is very tedious. I always have a lot of mixed filetypes (AI,eps...) so everytime i I have to save a svg copy, then import to Moho (click, click, click.... and so on). :evil:

I have Overlord for After Effects and i wanted something similar, so i came up with the idea of making a script (with ChatGPT of course, cause I am only able to code some simple javascript expressions for AE) that copies the svg code in a temporary file then loads automatically in Moho importer. :mrgreen:

I used ss_svg_import code as base, and it works perfectly (Only tested on Windows 10)!!! 8) It also deletes the temporary file after import...and surprise...i wasn't initially aware...YOU CAN COPY FROM ANY TYPE OF VECTOR FILE!!! :shock: :shock: :shock: (or those i tested at least> svg,ai,eps,afdesign).
I strongly think it should be a default feature for next Moho version (maybe rewrited from a real programmer :roll: )

Give it a spin! :wink:

https://mohoscripts.com/script/mp_Impor ... mClipboard
Last edited by Shizukuishi on Sun Aug 17, 2025 1:12 am, edited 1 time in total.
Even with the head in the clouds You can touch the ground

https://marisolpetretto.myportfolio.com/
https://www.linkedin.com/in/marisolpetretto/
User avatar
Maestral
Posts: 606
Joined: Tue Jan 27, 2009 8:44 am
Location: Belgrade, Serbia

Re: Import Vectors from clipboard SCRIPT

Post by Maestral »

Thanks for this one.
Works like a charm and +1 for adding it to Moho's defaults.
yoleafbug
Posts: 1
Joined: Tue Aug 12, 2025 4:53 pm

Re: Import Vectors from clipboard SCRIPT

Post by yoleafbug »

This sounds very interesting! I'm sorry for not understanding fully though--what's the workflow with this? My first instinct was to try to copy art directly from Illustrator, which seems incorrect lol.
User avatar
Shizukuishi
Posts: 77
Joined: Sun Dec 02, 2018 6:56 am
Location: Italy

Re: Import Vectors from clipboard SCRIPT

Post by Shizukuishi »

yoleafbug wrote: Wed Aug 13, 2025 10:57 am This sounds very interesting! I'm sorry for not understanding fully though--what's the workflow with this? My first instinct was to try to copy art directly from Illustrator, which seems incorrect lol.
You have to include SVG on copy from Preferences>Clipboard Handling
Even with the head in the clouds You can touch the ground

https://marisolpetretto.myportfolio.com/
https://www.linkedin.com/in/marisolpetretto/
Post Reply