Skip to main content
Inspiring
March 26, 2013
Answered

TIFF Import Options - Flatten Layers to a Single Image

  • March 26, 2013
  • 2 replies
  • 2449 views

Hi All,

Running a script to open up files and convert to another type. When it gets to a TIFF type file a dialog window titled 'TIFF Import Options' is opening. This windows has an Options column that contains two radio selections for 'Convert Layers to Objects' and 'Flatten Layers to a Single Image'. How would I open the file with the 'flatten layers to a single image' set?

Thanks

This topic has been closed for replies.
Correct answer KuddRoww

OpenOptionsPhotoshop.preserveLayers = true;

2 replies

c.pfaffenbichler
Community Expert
Community Expert
April 2, 2018

That line results in the error »OpenOptionsPhotoshop is undefined« for me on Illustrator CC 2018.

Could somebody provide additional advice?

pixxxelschubser
Community Expert
Community Expert
April 2, 2018

Hi ,

it seems, this not longer works. Please try:

var uILevel = userInteractionLevel; 

app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

//app.preferences.OpenOptionsPhotoshop.preserveLayers = true;

app.preferences.photoshopFileOptions.preserveLayers =false; // or true

var aFile = File("~/Desktop/NeuerOrdner/Test.tif");

if (aFile != null) { var aDoc = open(aFile, DocumentColorSpace.RGB); }

app.userInteractionLevel = uILevel;

Have fun

c.pfaffenbichler
Community Expert
Community Expert
April 3, 2018

Thank you!

KuddRowwAuthorCorrect answer
Inspiring
March 26, 2013

OpenOptionsPhotoshop.preserveLayers = true;