- Изменено
[suggestion] auto swap for imported frame animations
When we import frame by frame custom effects - and we're starting to import lots of them - it would be great to have this:
Animate mode, all the frames are swappable from a same slot and have a consecutive name, you click one button and it automatically keys a frame swap for every attachment in the slot, (which one can later rearrange in timing using offset etc.) creating as many frames as the number of attachments in that slot.
SO if one has 30 frames and has to do over 50 effects the process gets a little quicker.
Would it be possible?
Nevermind, I made an Autohotkey script which does it:
^k::
InputBox, OutputVarFrames, Question 1, How many frames there are?
Loop %OutputVarFrames%
{
Send ^+{Right}
Sleep 100
send h
Sleep 100
send r
Sleep 200
}
return
- download and install autohotkey,
- create a new file and paste the code, extension: .ahk
- double click on file to run it
- in spine have your slot with consecutive frames ready, go in animate mode
- make a random keyframe far enough because otherwise the script can't create keyframes
- press ctrl+K
- specify the number of frames when prompted
- profit
you're welcome!
Hello Erika. Has any progress been made on sequence handling in spine?
Hello! there's an enhancement proposal here: Frame-by-frame animation support · #9 · EsotericSoftware/spine-editor
But at the moment I'm writing it hasn't been improved yet, meaning the above script would likely help you greatly speed up the process (:
(you managed to find a post of when I wasn't part of the staff yet that brings back memories!)
at your service
@Erikari
Thank you, you save a lot of time
@Erikari why would there be flashing once I run the script? It looks like some frames were turned off twice?
Is there a way to resolve this?
Hello, you could try to slow down the script by setting greater numbers.