Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Adobe Illustrator使用“创建SVG路径”;移至「;命令_Svg_Adobe Illustrator - Fatal编程技术网

使用Adobe Illustrator使用“创建SVG路径”;移至「;命令

使用Adobe Illustrator使用“创建SVG路径”;移至「;命令,svg,adobe-illustrator,Svg,Adobe Illustrator,因此,当您将Adobe Illustrator文件导出为SVG格式时,将使用SVG路径语法对路径进行编码: 如果查看“路径数据”元素,可能会在路径中嵌入“移动到”命令: 换句话说,你在路径上画几行,拿起笔,把它移到其他地方,然后继续同样的路径 我一直试图找出如何在Illustrator中做到这一点,但没有任何效果。您可以添加到现有路径,但似乎只能通过从一个端点扩展路径来实现。我不想这样做:我想从其他地方继续这条路 通过将两条不相交的路径分组,可以得到类似的结果。然而,当Illustrator

因此,当您将Adobe Illustrator文件导出为SVG格式时,将使用SVG路径语法对路径进行编码:

如果查看“路径数据”元素,可能会在路径中嵌入“移动到”命令:

换句话说,你在路径上画几行,拿起笔,把它移到其他地方,然后继续同样的路径

我一直试图找出如何在Illustrator中做到这一点,但没有任何效果。您可以添加到现有路径,但似乎只能通过从一个端点扩展路径来实现。我不想这样做:我想从其他地方继续这条路


通过将两条不相交的路径分组,可以得到类似的结果。然而,当Illustrator导出svg时,它只创建了两个标记,并将它们放入一个标记中,这不是我想要的。如果我使用文本编辑器手动编辑svg文件,添加“移动到”命令,然后导入它们,Illustrator所做的可能就是创建一个组,但我说不出来,因为我不知道如何选择、对象以及判断它是否是组。

我认为唯一的方法是创建一个复合路径。选择要用作单个路径的两个路径,然后转到“对象>复合路径>生成”

如果这不起作用,那么它可能是不可能的。这是我能想到的唯一一种方式,在AI看来,非连续路径甚至会存在

  • 使用“移动到”命令创建具有路径的文件:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
         viewBox="-25 -25 100 100">
      <path d="M0,0 L50,0 M50,50 L0,50" stroke="black" />
    </svg>
    
  • 加油

  • <?xml version="1.0" encoding="utf-8"?>
    <!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
      "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" 
         xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
         width="612px" height="792px" viewBox="0 0 612 792"
         enable-background="new 0 0 612 792" xml:space="preserve">
      <path stroke="#000000" d="M128,218h306 M434,524H128"/>
    </svg>