Ctrl C Ctrl V into Vector Graphics

Next
 From:  andras (ANDRAS2)
10511.1 
Hi Michael,

I am wondering, if it is possible to create a command that converts the selected object into SVG, place it onto the Clipboard to insert it into a Vector graphics software, such as Affinity?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10511.2 
Or PDF inside Affinity... (or a shortCut)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10511.3 In reply to 10511.1 
Hi andras,

re:
> I am wondering, if it is possible to create a command that converts the selected object
> into SVG, place it onto the Clipboard to insert it into a Vector graphics software, such as Affinity?

You can set up a shortcut key with this on it to transfer into Affinity Designer:

script: /* Copy PDF format to clipboard */ moi.geometryDatabase.copyToClipboardPDF();


You can also put an .AI version 8 file into the clipboard using this:

script: /* Copy AI format to clipboard */ moi.geometryDatabase.copyToClipboardAI();


PDF works better than AI for transfer into Affinity. For Adobe Illustrator AI format works better.

SVG output is not supported yet in MoI but I'm expecting to add it for MoI v5.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10511.4 In reply to 10511.3 
Excellent!
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  andras (ANDRAS2)
10511.5 In reply to 10511.3 
It sunds good, but I wanted to use SVG because PagePlus works well with SVG.
Could you help me with some scripting how to convert curves to SVG and create SVG file.

1. I would expect the coordinates and control points of curves could be listed,
2. I need to to turn this list into SVG syntax
3. I need to create a file on Desktop
4. I need to copy it to clipboard.

Andras
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Death
10511.6 In reply to 10511.5 
Just save the .AI as SVG from Illustrator, or any other vector graphics app that let's you save from PDF/AI format to SVG?

Even Inkscape , a freebee, let's one do that...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10511.7 In reply to 10511.5 
Hi Andras, sorry no it's not really feasible to write a script to do that, because it's both too complex and also there isn't quite enough information currently exposed to script to do it.

If you would like to give it a try I would suggest writing out from Moi to either an .ai or .dxf file, then you could write a program external from MoI to process the file and convert it into SVG format rather than trying to do that directly from a MoI script.

But it won't be too much longer before the v5 betas start up where there will be SVG support built in so any effort to hack it in currently will be pretty much just wasted work.

I'm not familiar with PagePlus, it looks like it is a discontinued earlier generation version of Affinity? Is there a particular reason you're using that instead of the newer Affinity line? PDF on the clipboard does work right now with Affinity.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  andras (ANDRAS2)
10511.8 In reply to 10511.7 
Thank you,

Under consideration :) Yes, I still use PagePlus because I have it and still useful. I can open existing files, but I cannot open them in Affinity. That's why I want to keep it.
I will test PowerPoint later too. Affinity is intuitive because it has round edge feature compare to the older Page Plus. PowerPoint has a great equation editor.
I'll ask Rhino guys if SVG to clipboard is exist.

Andras
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All