Movatterモバイル変換


[0]ホーム

URL:


Scale2Size for Aseprite

Scale2Size for Aseprite

A downloadable Aseprite script

Scale2Size is a collection of three Lua scripts forAseprite that will scale the content of a selection to double its size, half its size, or to a custom percentage size of your choice, most useful when used as a keyboard shortcut.

What they do:

  • Scale2Double.lua doubles scales the selection to double its size;Size2Half.lua scales it to half its size;Size2Custom.lua scales it to a custom percentage.
  • The scripts are provided separately to allow for three different keyboard shortcuts, to be defined by the user.
  • Size2Custom.lua will not scale the image to a negative percentage value.
  • You must have a sprite and a selection for the script to work.
  • OnlySize2Custom.lua will open a small dialog box. The others will apply the scaling automatically to be as unintrusive as possible.

Download

Download
scale2size_0_2.zip5.1 kB

Install instructions

How to install:

  • InAseprite, go toFile > Scripts > Open Scripts Folder. This should open an Explorer window at<Aseprite program folder>/scripts.
  • Copy the filesSize2Double.lua,Size2Half.lua andSize2Custom.lua to this folder and inFile > Scripts selectRescan Scripts Folder.
  • The scripts should now be available for use.

Instructions:

  • While editing a Sprite, select anyScale2[size].lua script, and the scripts will double or halve the selection's content automatically, exceptScale2Custom.lua, which will ask for a percentage size.
  • You can also bind the scripts to different keyboard shortcuts by going toEdit > Keyboard Shortcuts.... For more information,read the Aseprite documentation.
  • Important: Due to the ridiculous way in which Aseprite handles color modes in its API, there's a non-zero chance of the image content breaking in an unspecified way, although this bug should be rare, and has never happened to me since I developed it.

In case of a bug, or any other kind of unintentional behavior, feel free to contact me atkidmarscat [at] gmail [dot] com or leave a comment on theScale2Size download page,kidmarscat.itch.io/scale2size

ChangeLog

DateVersionWhat changed
2024-090.2Updated to match the latest API; several code improvements.
2023-050.1First Release, internal use only.

Leave a comment

Log in with itch.io to leave a comment.

itch.io·View all by kid marscat·Report·Embed
ToolsFree

[8]ページ先頭

©2009-2025 Movatter.jp