Skip to content

Instantly share code, notes, and snippets.

@dacap
Created November 21, 2023 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacap/b24090c498dc26e5f475ab8430afcecf to your computer and use it in GitHub Desktop.
Save dacap/b24090c498dc26e5f475ab8430afcecf to your computer and use it in GitHub Desktop.
Open with Snap to Grid
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