austynmahoney / mobile-export-scripts-illustrator Goto Github PK
View Code? Open in Web Editor NEWScripts for exporting Illustrator artboards to Android and iOS assets
License: Apache License 2.0
Scripts for exporting Illustrator artboards to Android and iOS assets
License: Apache License 2.0
This script is excellent. Especially the folder creation and automatic naming is very handy. It would be very helpful if there were a way to save a selected object on the artboard instead of the entire artboard. Also, the ability to change the file name would be very useful. Finally, there should be a way to save an icon that is made up of multiple objects; this is very important for us designers.
To summarize, I am looking for something similar to the "export selection" option in the file menu.
The user should be allowed to export only the artboards they want.
So, there is no artboard size specified that will generate the icons of the correct size. I tested for android, and the correct artboard size is 96 x 96 px. It should be specified somewhere in the README
Would be great if you could ignore layers that have an exclamation mark in their title. This way the user can control what is being exported in the assets and what not.
This was a really helpful plugin :) Saves a lot of time from manually saving all the names. One thing I noticed was that setting the artboard name was a hindrance since Apple requries specific naming conventions for the icon names.
I modified your script slightly to remove the artboard name (just included the name in the script itself), and also added all of the iOS icon sizes based on Apple's specs:
https://developer.apple.com/library/content/qa/qa1686/_index.html
Feel free to take these mods and add them to your original code if you like.
I didn't change any of the Android sections, as their naming conventions were not as clear to me as iOS.
Here's the modifications:
https://github.com/druid-woman/mobile-export-scripts-illustrator-ios-all
Thanks!
The sizes are wrong for android.
See official at: http://developer.android.com/guide/practices/screens_support.html and Read at Alternative drawables.
The correct sizes should be:
{
name: "mdpi",
scaleFactor: 50,
type: "android"
},
{
name: "hdpi",
scaleFactor: 75,
type: "android"
},
{
name: "xhdpi",
scaleFactor: 100,
type: "android"
},
{
name: "xxhdpi",
scaleFactor: 200,
type: "android"
},
{
name: "xxxhdpi",
scaleFactor: 300,
type: "android"
}
See #18
i want to export to android and ios so every time i re select all of them , add select all button
When using the script with vector based images, I expect the quality of the image to retain
Hello, thank you for an extremely useful project we've been using it for over a year now with no issues. I just updated to Illustrator 2017 and I'm getting an error when I try to run the export now. It says
Error 13: Too many closing braces.
Line: 550 ->
Is this a problem with the script or something I'm doing wrong? Thank you in advance for your patience.
It's possible to add a input text for indicate the name to file for export? thanks. Your plugin is amazing!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.