SketchAPI icon indicating copy to clipboard operation
SketchAPI copied to clipboard

API has no access on any foreign objects and swatches

Open N0TB0T opened this issue 7 months ago • 1 comments

Currently, there's no way to obtain the documents foreign swatches, objects or colors. So not even the name of a color used in the document can be used. Please expose all attributes of the documents JSON via API, as this is crucial for any plugin development or batch scripting.

N0TB0T avatar Apr 29 '25 10:04 N0TB0T

When I call library.getImportableSymbolReferencesForDocument(), I get an error: ReferenceError: Can't find variable: MSForeignObjectCollector. Is it related to the problem you mentioned? Can you tell me more about it?

Currently, there's no way to obtain the documents foreign swatches, objects or colors. So not even the name of a color used in the document can be used. Please expose all attributes of the documents JSON via API, as this is crucial for any plugin development or batch scripting.

xlkang avatar Jun 03 '25 06:06 xlkang