{"id":866,"date":"2015-07-06T21:20:39","date_gmt":"2015-07-06T20:20:39","guid":{"rendered":"https:\/\/greladesign.co\/blog\/?p=866"},"modified":"2015-07-07T07:08:34","modified_gmt":"2015-07-07T06:08:34","slug":"illustratorscripts-for-mobile-graphic-development","status":"publish","type":"post","link":"https:\/\/greladesign.co\/blog\/2015\/07\/06\/illustratorscripts-for-mobile-graphic-development\/","title":{"rendered":"IllustratorScripts for mobile graphic development"},"content":{"rendered":"<p>I&#8217;m putting together some scripts I use in Illustrator to help with mobile graphic development. First 2 I&#8217;m sharing are for android development.<br \/>\n<!--more--><\/p>\n<h1>create_android_artboards.js<\/h1>\n<p>This script is useful if you keep separate artboards per image per size. It will create a set of artboards at &#8220;bucket&#8221; size calculated from given base size at mdpi density bucket. Pick the name and size and your new set of artboards will be created below any other existing ones. The artboard name will be prefixed with appropriate prefix e.g. <em>mdpi_<\/em> so you can&#8217;t use it in the given name, other prefixes are: &#8220;hdpi_&#8221;, &#8220;xhdpi_&#8221;, &#8220;xxhdpi_&#8221; and &#8220;xxxhdpi_&#8221;.<\/p>\n<h1>export_artboards_for_android.js<\/h1>\n<p>This is an exporter type script, it is used in conjunction with the <em>create_android_artboards.js<\/em> as it uses the naming convention from that script to create the PNG output. This scripts takes all artboards and export each to the proper &#8220;bucket&#8221; drawable folder e.g. Artboard names <em>mdpi_ic_launch<\/em> will be exported to the <em>drawable-mdpi\/ic_launch.png<\/em>.<\/p>\n<p>All those scripts are available on my <a href=\"https:\/\/github.com\/LukaszGrela\/IllustratorScripts-mobile-dev\" target=\"_blank\">GitHub<\/a>.<\/p>\n<p>You can install them by copying into the scripts folder in the default install location:<br \/>\nIllustrator CS5.1<br \/>\n<em>C:\\Program Files\\Adobe\\Adobe Illustrator CS5.1\\Presets\\en_GB\\Scripts<\/em><\/p>\n<p>64bit CS6 Illustrator the path looks like this:<br \/>\n<em>C:\\Program Files\\Adobe\\Adobe Illustrator CS6 (64 Bit)\\Presets\\en_GB\\Scripts<\/em><\/p>\n<p>as also described in this <a href=\"http:\/\/stackoverflow.com\/a\/27042152\/923340\" target=\"_blank\">Stack Overflow answer<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m putting together some scripts I use in Illustrator to help with mobile graphic development. First 2 I&#8217;m sharing are for android development.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":""},"categories":[222],"tags":[226,224,291,225,290],"_links":{"self":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/866"}],"collection":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/comments?post=866"}],"version-history":[{"count":7,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":876,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/posts\/866\/revisions\/876"}],"wp:attachment":[{"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/media?parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/categories?post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greladesign.co\/blog\/wp-json\/wp\/v2\/tags?post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}