How to update the state of the context variable every time the selection changes
You have two approaches. I've mentioned them here in the past:
https://sketchplugins.com/d/1530-create-global-variable-in-function-in-script-js/4
Hi kevgski I'm having a problem that when I paste a layer into a layer selected then my selected layer is changed now and my context variable doesn't update the change. Is there a way to make the context self-update. Thank you ^^