Jump to content

Recommended Posts

Posted

Hello

I could not find any posting related to this. Seeking possible information and advice, where to start digging.

  • Affinity Designer 2
  • macOS 12.6.3

I need to render svg-files from Blender (V3.4.0) to edit them in vector format in Designer. They refuse to open in Affinity Designer.  287956774_Screenshot2023-03-27at14_13_01.jpg.0beff448e0cf1e63ae56a57840ddd8c6.jpg

Mac Quicklook, Adobe and Safari web browser opens them fine. Any advice what to try next, please? I have attached a svg-file here if anybody interested:

Test0001.svg

Posted
8 minutes ago, JariH said:

Seeking possible information and advice, where to start digging.

Remove the following line from the file with a simple editor. Maybe worth a feature request, that AD should ignore this line.

<?xml version='1.0' encoding='ascii'?>

----------
Windows 10 / 11, Complete Suite Retail and Beta

Posted
1 minute ago, joe_l said:

Remove the following line from the file with a simple editor.

<?xml version='1.0' encoding='ascii'?>

Thank you.

That did the trick.

Posted

I'm pretty sure that it's the "ascii" encoding that is the problem, rather than the whole line.
An alternative to the advice above would be to see if you can tell Blender to use a different encoding, such as “UTF-8”, when creating the exported SVG.
That way you shouldn’t need the extra editing step.

Posted
1 minute ago, GarryP said:

I'm pretty sure that it's the "ascii" encoding that is the problem, rather than the whole line.

Yes, this is correct.

----------
Windows 10 / 11, Complete Suite Retail and Beta

Posted

Thanks for confirming that.
I think I might have come up with the same problem when I was creating some SVG code procedurally a while back but couldn’t remember if I had remembered it correctly.

Posted

Thanks joe_l & GarryP.

I don't know how to change svg encoding when rendering from Blender. Editing xml is quick and dirty way. I can live with, it's just a few files.

Posted
11 minutes ago, Andreas CH said:

... Another observation.

The Test0001.svg can be opened with the Publisher.

And this is how you bring it into the designer.

  1. Place Test0001.svg in Publisher
  2. Click on "Edit document"
  3. Select all (Ctrl+A)
  4. Copy (Ctrl+C)
  5. In the Designer "New from Clipboard"

Sorry, unable open or import into Publisher either (V2.0.4).

Posted

Ups, sorry

Da habe ich die konvertierte Datei erwischt.

Du kannst Test0001.svg mit InkScape öffnen und unter neuem Namen speichern.
Nun lässt sich die Datei im Designer öffnen.

 

I got the converted file.

You can open Test0001.svg with InkScape and save it under a new name.
Now
you can open the file in Designer.

Posted
6 hours ago, JariH said:

I don't know how to change svg encoding when rendering from Blender. Editing xml is quick and dirty way. I can live with, it's just a few files.

Yes, that's pretty trivial to fix!

  1. Opening your Blender generated "Test0001.svg" file inside some text editor.
  2. In the first line of the SVG XML code one can see ...
    Quote

    <?xml version='1.0' encoding='ascii'?>
    ...

    ... replacing the 'ascii' with 'UTF-8' ...
     

    Quote

    <?xml version='1.0' encoding='UTF-8'?>
    ...

  3. After that little change inside a text editor, saving the file and opening it again in ADe, APh or Apub. - It should now load and showup without any problems!

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Posted
28 minutes ago, v_kyr said:

Yes, that's pretty trivial to fix!

  1. Opening your Blender generated "Test0001.svg" file inside some text editor.
  2. In the first line of the SVG XML code one can see ...

    ... replacing the 'ascii' with 'UTF-8' ...
     

  3. After that little change inside a text editor, saving the file and opening it again in ADe, APh or Apub. - It should now load and showup without any problems!

Thanks. I use the text edit trick. I meant, I don't know if it is possible to tell Blender to encode UTF-8. This seems to be a problem in "Freestyle SVG Export" Add-on

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.