Answered
[JS] How to export to only selection object as jpg?


Hi. ![]()
I want to set up to export only the selected objects.
But I can't found source from API.


Hi. ![]()
I want to set up to export only the selected objects.
But I can't found source from API.
You have to use selection[0]
var forexporting=app.selection[0];
forexporting.exportFile( ExportFormat.JPG, filepath, false );// mention you path name to save the file in the place of filepath
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.