- 수정됨
Batch and actions in Spine?
I was wondering, is there a way to automate boring, very repetitive, things I have to do every time in Spine?
e.g. is there a way to create a scripts that keys all the IKs at the first frame of every animation, or that creates 6 bones with certain names and colors every time I need it in a new skeleton? Or that for example, to give an old school look to animation, keys everything every two frames, makes curves stepped, deletes everything on the frames that are supposed to be empty and then performs a clean up of the animation? (very specific and boring, yay, and repeated so much the wrist hurts)
If it's not possible, are there valid alternatives in windows environment?
I wish I could code and make python batches and such... I found this that could be useful https://autohotkey.com/ but I don't know how to make it interact with Spine, like I really have no idea.
In photoshop it's possible to record actions and then batch perform them, and I have a guess you can actually perform something of the kind via... a terminal maybe? but I'm just a humble artist and I don't have that knowledge, can someone suggest solutions? .-.
Thanks in advance, this really concerns me.
I'm afraid we don't have something like that. Maybe in the future, but I honestly can't say.
As Shiu said, there currently isn't a way to do this sort of automation inside Spine.
You could control the mouse with some other program, then play back mouse movements, clicks, and keyboard presses. This may give you what you want, but would be sensitive to Spine window and view position and so unlikely to be shareable with others. Likely you'd do an action once to record it, then play it back many times. Some actions may not be possible to repeat, or may require some thought
be sure to consider these Spine shortcuts:
Child: ctrl + shift + DOWN
Previous Sibling: ctrl + shift + LEFT
Next Sibling: ctrl + shift + RIGHT
Expand/Collapse: ctrl + shift + ENTER
Parent Bone: ctrl + UP
Child Bone: ctrl + DOWN
Previous Sibling Bone: ctrl + LEFT
Next Sibling Bone: ctrl + RIGHT
AutoHotkey is a (very weird) scripting language. You might be better off with something like Mouse recorder which I found as the first Google result, but I have no first-hand experience with it. I use keyboard recording in Notepad++ and Eclipse (through a plugin called PracticallyMacro) for doing repetitive tasks, but I've not tried mouse or keyboard recording for general application usage. Maybe that's something my wonderful Clippy should do... :o
Another way to do what you want is to generate JSON and then import it into Spine. Doing that is unlikely to be as fast and intuitive as mouse and keyboard recording. It may still be useful, especially when you create the JSOn in Spine. Eg, you mentioned creating some specific stuff when you create a new skeleton. For that, do it once, export to JSON, then import the JSON any time you need a new skeleton with that stuff.
Another thing you can do is export to JSON, process the JSON, then import it back. This is what the JsonRollback tool does. This is not really animator friendly though, it's more something that a programmer would need to setup and would only make sense if the time it takes to write the code to munge the JSON is a lot less than it takes doing it through the Spine UI.
Thanks for sharing the shortcuts (:
Well, I used a mouse recorder in the past, it was just too slow and lacked that minimum of intelligence that batches offer, also, if I made it 4x fast suddenly the mouse would click where it wasn't supposed messing everything. I just used that to click all the green keys on the fist keyframes of every animation, but it's really not a very viable option. Being able to achieve what I need through a program solely using Spine shortcuts though would be amazing.
What's missing is probably the ability to search in the tree view for a bone by typing the name and therefore selecting it without having to open a separate window, (correct me if I'm mistaken, apparently I too do use obscure methods sometimes!)
I've seen clippy one of the times I was randomly searching for the runtimes it has quite a bunch of features!
It made me think of this guy at first:
I wonder if I can actually achieve at least one of those tasks with a keyboard recorder...
I'll share my results if I achieve something decent u.u
Thanks for the in depth answer.
Yup, Clippy chills in the background and does all kinds of things for you. :coffee: :talk:
I've wanted a tree search for a long time. The tree highlighting is a precursor to that feature (probably it will highlight all matches and be able to jump to the next/previous match), which I hope we can have in soonish.
Erikari wroteI just used that to click all the green keys on the fist keyframes of every animation
You probably know this, but now that the dopesheet has a filter, you can filter on rotation (green keys), then click the white key on the first row to select all rotation keys for a frame. I realize this doesn't help if you need to do something for every animation though.