Skip to main content
Participant
September 20, 2019
Question

Help with SVG Path

  • September 20, 2019
  • 3 replies
  • 1228 views

When exporting an object as a SVG from Illustrator CC 2018, it's giving me 2 "paths" with in my path (highlighted below).
<path d="M224.42,21.1,298.85,150,224.42,278.9H75.58L1.15,150,75.58,21.1H224.42m.58-1H75L0,150,75,279.9H225L300,150,225,20.1Z"

 

Is there a setting or something I can change so it would only export as just the red text?

    This topic has been closed for replies.

    3 replies

    renél80416020
    Inspiring
    September 20, 2019

    Bonjour

    Je n'arrive pas à faire un copier/coller, c'est beau le modernisme !!!

    Voici le lien vers le fichier illustrator, je n'ai pas réeussi à copier le lien autrement que par inserer/edit code sample

    <a href="https://share.orange.fr/#6B4Bc5YJm92ec7b6193d" target="_blank">https://share.orange.fr/#6B4Bc5YJm92ec7b6193d</a>

    DE ELLEERE

     

    Monika Gause
    Community Expert
    Community Expert
    September 20, 2019
    How is that built? The question is why Illustrator exports this as two parts and that must be caused by the way you set it up in the AI file. Would need to see the contents of the layers panel and the appearance panel.
    Monika Gause
    Community Expert
    Community Expert
    September 21, 2019

    Bonsoir Monika_Gause, (il est 19h40)

    J'enlève ce qui est en trop, puis je fais "Enregistrer Sous..." SVG

    Je suis scripteur pour Illustrator, pour afficher le tracé, j'utilise un script qui dessine le tracé à partir du chemin.

    <path d="M150.1,1.8l98.7,148l-98.9,148.3l-98.7-148L150.1,1.8 M150.1,0L50,150.2L149.9,300L250,149.8L150.1,0L150.1,0z"/>

    texte placé dans un nouveau document.document.

    Pour mieux voir.

     


    So you are drawing two paths. And then there will be two paths in your file.
    Participant
    September 20, 2019
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
    <svg version="1.1" id="Layer_1" xmlns="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>" xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a>" x="0px" y="0px"
    	 width="300px" height="300px" viewBox="0 0 300 300" style="enable-background:new 0 0 300 300;" xml:space="preserve">
    <g>
    	<polygon points="50.6,150.2 150.1,0.9 249.4,149.8 149.9,299.1 	"/>
    	<path d="M150.1,1.8l98.7,148l-98.9,148.3l-98.7-148L150.1,1.8 M150.1,0L50,150.2L149.9,300L250,149.8L150.1,0L150.1,0z"/>
    </g>
    </svg>
    Participant
    September 20, 2019
    Basically I would like to export just the first half of the path "M150.1,1.8l98.7,148l-98.9,148.3l-98.7-148L150.1,1.8"
    Monika Gause
    Community Expert
    Community Expert
    September 20, 2019
    Whatdoes the element look like?
    Monika Gause
    Community Expert
    Community Expert
    September 20, 2019

    Can you show this?