Erikari

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
1. download and install autohotkey,
2. create a new file and paste the code, extension: .ahk
3. double click on file to run it
4. in spine have your slot with consecutive frames ready, go in animate mode
5. make a random keyframe far enough because otherwise the script can't create keyframes
6. press ctrl+K
7. specify the number of frames when prompted
8. profit

you're welcome!
User avatar
Erikari

Erikari
  • Posts: 1973

cyb3r

Hello Erika. Has any progress been made on sequence handling in spine?
cyb3r
  • Posts: 19

Erikari

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 :D that brings back memories!)
User avatar
Erikari

Erikari
  • Posts: 1973

cyb3r

at your service ;)
cyb3r
  • Posts: 19

eprime

@Erikari
Thank you, you save a lot of time
User avatar
eprime
  • Posts: 21


Return to Editor