-
Notifications
You must be signed in to change notification settings - Fork 0
animations
the animations folder currently has no scripts in it except in the subfolder "porting"
in porting there are two scripts which make porting animations a bit easier by automating the scaling of all animations so you dont have to manually stretch all animations to fit another weapon if you want to for example port them.
How to you them: there are two scripts to port animations from one weapon to another without having to manually scale them all. only "ports" the ones that exist in both models but still helpful (i just used them to port all dmr stuff to the kraber)
Script 1 is called "port_stage_one" This one takes the model who you want to port animations to, select the armature, press run and it outputs you a cool long list of data in the console.
Script 2 is called "port_stage_two" script two now takes that list (insert on line 3 as animation lenghts) and scales the animations of a selected armature to fit all matching animation lenghts from the list, this has to be ran on the model with the animations you want to port to the other model.
Done! all animations should now be scaled according to the list exported by script 1. in the source engine exportables tab you can now select the armature, select "action filter" enter a * in the filter and then batch export all animations at once (might take a bit)
Quick example on how to possibly port some stuff: if you want to port the longbows animations to the kraber (the ones they share) you open the kraber in blender with all animations and select its armature then run script 1
copy the list from the blender console
open another blender with the dmr imported with all anims, run script two and replace the empty list in the script with the one generated by script 1 then you can export ur anims