DarklightGames / io_scene_psk_psa

A Blender extension for importing and exporting Unreal PSK and PSA files
GNU General Public License v3.0
378 stars 24 forks source link

Add automation to support UE1 animation workflow #25

Closed cmbasnett closed 1 year ago

cmbasnett commented 1 year ago

People using this add-on for UE1 animations have to do a lot of manual "frame counting" and and physically type out the frame ranges for animations after combining all of their animations into one mega-animation. This workflow is horrible, of course, and could easily be automated.

For the PSA exporter, add an option to switch to "UE1 mode", where the sequences are automatically concatenated together, and write a sidecar file of all the UE1 #exec commands, like below (full sample file also attached):

#exec ANIM SEQUENCE ANIM=AKs74uAnim SEQ=Idle STARTFRAME=1 NUMFRAMES=240 RATE=60 //GROUP=Idle
#exec ANIM SEQUENCE ANIM=AKs74uAnim SEQ=TriggerPull STARTFRAME=241 NUMFRAMES=1 RATE=60 //GROUP=Firing
#exec ANIM SEQUENCE ANIM=AKs74uAnim SEQ=HipFire STARTFRAME=241 NUMFRAMES=9 RATE=60 //GROUP=Firing
#exec ANIM SEQUENCE ANIM=AKs74uAnim SEQ=HIPtoIS STARTFRAME=250 NUMFRAMES=14 RATE=60 //GROUP=Idle
#exec ANIM SEQUENCE ANIM=AKs74uAnim SEQ=ISIdle STARTFRAME=263 NUMFRAMES=240 RATE=60 //GROUP=Idle
#exec ANIM SEQUENCE ANIM=AKs74uAnim SEQ=ISFire STARTFRAME=503 NUMFRAMES=9 RATE=60 //GROUP=Firing

AKs74u.txt

cmbasnett commented 1 year ago

I wrote this out earlier with every intention to help here, but I think think that this could very well be done by a separate program and shouldn't necessarily be put into this Blender add-on since I don't want to bloat it out to cover everyone's specific use cases.

All it would require is a program that could read the sequence information from the PSA and then dump it out to a format that UCC can understand.

I can re-open this if I'm given a compelling reason, but for now I'm going to get this off of the to-do list.