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 dlg | |
dlg = Dialog("Pixel Ratio") | |
:entry{ id="w", label="Width", text="1" } | |
:entry{ id="h", label="height", text="1" } | |
:button{ id="test", text="Test", onclick=function() | |
app.sprite.pixelRatio = Size(dlg.data.w, dlg.data.h) | |
app.command.Zoom{ action="in" } | |
app.command.Zoom{ action="out" } | |
app.command.ScrollCenter() | |
end } |
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
app.command.ConvertLayer{ ui=false, to="tilemap" } |
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.command.ChangePixelFormat{ format="rgb" } | |
end |
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 |
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
diff --git a/data/gui.xml b/data/gui.xml | |
index ac89a3685..2af1545bf 100644 | |
--- a/data/gui.xml | |
+++ b/data/gui.xml | |
@@ -1315,6 +1315,13 @@ | |
controller="one_point" | |
pointshape="floodfill" | |
tracepolicy="accumulate" /> | |
+ <tool id="pencil_selection" | |
+ text="@.pencil" |
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
---------------------------------------- | |
Layer Head | |
Default Category: | |
Properties: | |
* categories table: 0x55c3cbcda3e0 | |
* folders table: 0x55c3cbcda4f0 | |
* id 2 | |
---------------------------------------- | |
Layer Tilemap 1 | |
Default Category: |
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 PK = "aseprite/Attachment-System" | |
local sprite = app.activeSprite | |
function find_tileset_by_catID(catID) | |
for _,ts in ipairs(sprite.tilesets) do | |
if ts.properties(PK) and | |
ts.properties(PK).id == catID then | |
return ts | |
end | |
end |
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
if app.preferences.experimental.nonactive_layers_opacity == 255 then | |
app.preferences.experimental.nonactive_layers_opacity = 128 | |
else | |
app.preferences.experimental.nonactive_layers_opacity = 255 | |
end |
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
/*** MIT LICENSE | |
Copyright (c) 2022 torcado | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following |
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 s = app.activeSprite | |
if not s then return end | |
local f = app.activeFrame | |
local readjustTags = {} | |
for _,t in ipairs(s.tags) do | |
if t.fromFrame.frameNumber == f.frameNumber and | |
t.toFrame.frameNumber == f.frameNumber then | |
table.insert(readjustTags, t) |
NewerOlder