Large Canvas how to detect?

New Here ,
Mar 18, 2022 Mar 18, 2022

Copy link to clipboard

Copied

Hi all

 

I'm having problems with my plugin working with Large Canvas documents.

How can I detect if a document uses large canvas?

 

I found in previous discussions that scripts use the app.activeDocument.scaleFactor property to detect it but with a plug-in how can I do it?

 

I thougth to use the GetEffectiveScaleFactor of AIDocumentSuite but it always return 1.0.

 

Thank you

TOPICS
How to , SDK

Views

46

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 12, 2022 Apr 12, 2022

Copy link to clipboard

Copied

LATEST

Hi all

 

I solved it by myself.

Just to let you know: I was simply looking in the wrong API, from SDK version 2021 the new method GetDocumemntScale was added to AIDocumentSuite.

 

😉

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines