Created
November 21, 2023 20:24
-
-
Save dacap/b24090c498dc26e5f475ab8430afcecf to your computer and use it in GitHub Desktop.
Open with Snap to Grid
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
local oldSprite = app.sprite | |
app.command.OpenFile() | |
if oldSprite ~= app.sprite then | |
app.preferences.document(app.sprite).grid.snap = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment