白色底的文档导出缺少边界 / A way to export an image with canvas color visible when Use Artboard option is disabled
当画板为白色底时,右键“导出所选项目”,导出的文件没有边界,无法分辨单个项目。
目前的解决方法是在画板上添加一个有描边的矩形,但是当有多个画板时这个方法会比较麻烦。另外一种方法是每个画板单独导出一张图片,再整合到一个文档里,这样也会增加很多工作量。希望团队能有更好的方案。
使用场景举例:当给客户提案或预览整体效果时,需要将多个画板同时导出到一个文件(png或jpg),这时如果画板底色为白色,就无法分辨边界。
-
onenower commented
谢谢你的分享和无私奉献,我已经下载了。不过,我对脚本不是很精通,我会尝试使用它。如果可能,我也会尝试修改并分享。
-
Exactly.
That’s why when multiple Artboards were introduced and Release Artboard command was removed, I had to make a small script that does it.
It allows to create an artboard sized rectangle, either for the current artboard only or all of them at once.That’s why I presumed a script can be built, since I made one already :)
But I don’t have time to modify it to fit your task perfectly, since it needs to read a color from swatches it will use for the 'canvas' background.
Anyway — feel free to use and modify it. If you do change it — please share it, so others can benefit from it.
Just rename it from .txt to .jsx (UserVoice does not allow to share naked scripts for security reasons) -
onenower commented
或者画板增加“画板转为形状”的功能,当需要使用时,先将画板转为形状,现在已经有“形状转为画板”功能,这样形状和画板就可以相互转换,这个功能在其他场景也很实用。
-
onenower commented
希望团队能有好的解决方案,这种导出方式每天都在用,白色背景在设计中频繁使用,在实际项目中,每个项目都会有多个画板。每次导出时都非常头疼,希望团队能尽快增加一个高效、通用的解决方案,谢谢!
-
Makes sense.
A workaround with custom written script comes in mind... the one that would create actual rectangles and keep them selected for easy deletion... After all, I already use scripts to export stuff often. But that’s not a universal solution, but just a workaround.
-
onenower commented
是的
-
Am I getting this right — you want to have a built-in way to set the color of the canvas, visible in exported images without artboards included?
-
onenower commented
目前“导出所选项目”的默认背景是白色,如果能更改“导出所选项目”的背景颜色,这个问题就可以解决了。