Skip to main content
Inspiring
May 9, 2016
Answered

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

  • May 9, 2016
  • 1 reply
  • 435 views

Hi.

I want to set up to export only the selected objects.

But I can't found source from API.

This topic has been closed for replies.
Correct answer tpk1982

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

1 reply

tpk1982
tpk1982Correct answer
Legend
May 9, 2016

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

K159Author
Inspiring
May 9, 2016

Thank you