set('foreignSymbols', arr) doesn't work properly
Closed this issue · 3 comments
Hi,
I'm trying to do something like this:
sketch.document.set('foreignSymbols', arrayOfNewNodeSymbols);
the assignment works OK, but when I check the actual array I assigned to sketch.foreignSymbols
, I'm seeing this:
I'm guessing I'm doing something wrong or am doing something that is not allowed. I'm looking to strip out some symbols based on certain conditions and rewrite the file with that new set of symbols.
EDIT: I think I figured this out; sketch.foreignSymbols
has different object types (symbolMaster
) than sketch.document.foreignSymbols
.
Perhaps in the future be able to set sketch.whatever
attrs as well as getting them?
See edit above ^
Sorry for the late and thanks for the feedback. Yes, it's good idea. I will do.
No worries! This tool is much appreciated 🎉