Created
July 20, 2020 23:19
-
-
Save KevinGutowski/0d33dcac58d8267439cefa11d40a933f to your computer and use it in GitHub Desktop.
Move Global Assets Colors and Gradients to Document Asset Colors and Graidents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let globalAssets = MSPersistentAssetCollection.sharedGlobalAssets() | |
let gColorAssets = globalAssets.colorAssets() | |
let gGradientAssets = globalAssets.gradientAssets() | |
let doc = context.document | |
doc.documentData().assets().setColorAssets(gColorAssets) | |
doc.documentData().assets().setGradientAssets(gGradientAssets) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment