ScratchAddons icon indicating copy to clipboard operation
ScratchAddons copied to clipboard

Copy selected or all costumes from one sprite to another sprite

Open hueychen27 opened this issue 1 month ago • 0 comments

Why this would be helpful

I sometimes import a sprite from the backpack with over 100 costumes, and it is very tedious to move them all to my main sprite. This addon will greatly help.

How this addon works

This button adds a selection feature where holding the key "alt" on the costume in the costumes tab in that sprite highlights and selects it. When right clicking a selection the user has the option to copy the selection or all costumes to a specified sprite.

Possible alternatives

Force me to make the files on my computer with the following script and import them all.

#!/bin/bash

mkdir /tmp/svgAlphabetically
cd /tmp/svgAlphabetically

svg_content='<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0" height="0"></svg>'

# Loop through lowercase letters a-z
for letter in {a..z}; do
    echo "$svg_content" > "_${letter}.svg"
done

# Loop through uppercase letters A-Z
for letter in {A..Z}; do
    echo "$svg_content" > "_${letter}.svg"
done
echo "Done, see /tmp/svgAlphabetically"

Additional context

No response

hueychen27 avatar Jun 30 '24 22:06 hueychen27