使用Adobe Illustrator通过“移动到"来创建SVG路径.命令 [英] Use Adobe Illustrator to create SVG Path using "move to" commands

查看:160
本文介绍了使用Adobe Illustrator通过“移动到"来创建SVG路径.命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

So when you export an Adobe Illustrator file to SVG format, paths are encoded using the SVG path syntax:

http://www.w3.org/TR/SVG/paths.html

如果您查看路径数据"元素,则可能会将移至"命令嵌入到路径中:

If you look at the "path data" element, it's possible to have "move to" commands embedded into a path:

http://www.w3.org/TR/SVG/paths. html#PathData

换句话说,您在路径中画了几条线,拿起笔并将其移动到其他位置,然后继续相同的路径.

In other words, you draw a few lines in the path, pick up the pen and move it somewhere else, and continue the same path.

我一直试图弄清楚如何在Illustrator中执行此操作无济于事.您可以添加到现有路径,但似乎只能通过从端点之一扩展路径来做到这一点.我不想这样做:我想从其他地方继续前进.

I have been trying to figure out how to do this in Illustrator to no avail. You can add on to an existing path but it seems you can only do this by extending the path from one of the endpoints. I don't want to do this: I want to continue the path from somewhere else.

通过对两个不相交的路径进行分组,您可以得到类似的结果.但是,当Illustrator执行svg导出时,它只会创建两个< path>路径.标签并将其放在< g>标签,这不是我想要的.如果我使用文本编辑器手动编辑svg文件,添加移至"命令,然后导入它们,则看起来Illustrator正在创建一个组,但我不知道是因为我不知道如何选择并提出反对意见,并弄清是否是一个团体.

You can get something sort of like this by grouping two disjoint paths. However when Illustrator does the svg export it just creates two <path> tags and puts them inside a <g> tag which is not what I want. If I manually edit an svg file with a text editor, adding "move to" commands, and I import them, it looks like maybe what Illustrator is doing is creating a group, but I can't tell because I don't know how to select and object and figure out if it is a group or not.

推荐答案

我认为唯一的方法是制作复合路径.选择要用作单个路径的两个路径,然后转到对象">复合路径">制作".

I think the only way would be to mak a compound path. Select both paths you want to use as a single path and go to Object > Compound Path > Make.

如果这不起作用,则可能无法执行.这是我能想到的唯一方法,就AI而言,不连续的路径甚至会存在.

If this doesnt work then its probably not possible. This is the only way i can think of in which a non-contiguous path would even exists as far as AI sees it.

这篇关于使用Adobe Illustrator通过“移动到"来创建SVG路径.命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆