Beherith / Skeletor_S3O

A blender script that automatically generates a skeleton for an s3o imported model for SpringRTS animation. Makes .BOS exported script from animation too.
https://www.beyondallreason.info/
GNU General Public License v3.0
2 stars 2 forks source link

export multiple actions #4

Open psimyn opened 3 years ago

psimyn commented 3 years ago

idea I would like to try:

  1. Remove is_walk_script and is_death_anim checkboxes
  2. Create multiple actions named Walk, RestorePose, IdlePose, Killed, etc
  3. loop over bpy.data.actions, action name determines type
  4. Possibly add conditions to action name (Walk:VariableSpeed)
Beherith commented 3 years ago

This is probably very smart, especially if you could add a dropdown to skeletor panel to select which anim to export.

I would however refrain from removing the checkboxes, as they have other subtle effects in how the anim is generated.

E.g. knowing that walk has to start from and return to idlepose is nontrivial (estimating the speeds at which it should return to idle stance from arbitrary positions is hard, and is done in a very worst-case estimation by me, basically just finding the highest turn speed and using that)

psimyn commented 3 years ago

I was thinking a single export still, containing multiple actions. Being able to separately export each action would be good as well.

The conditions for death / is_walk etc would still exist, I'd meant the conditions are determined by the name of the animation rather than checkboxes. For blender file with a Walking action and a Killed action, script outputs file with Walking(), StopWalking(), and Killed() methods.

still playing around on the blender-side, as that is pretty new to me

Beherith commented 3 years ago

Epic imo, ill make a dance if I get around to it today ;), cause this time it has to be LUS :D