WIP Infantry import for engine

This commit is contained in:
Alan O'Cull 2024-03-01 01:07:12 -05:00
parent 8a590e8951
commit 5b30ee05b4
6 changed files with 31 additions and 7 deletions

Binary file not shown.

BIN
animations/infantry/anims-alan.blend (Stored with Git LFS)

Binary file not shown.

BIN
characters/infantry/EXPORT_MESHES.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
characters/infantry/p10-rigging.blend (Stored with Git LFS)

Binary file not shown.

View File

@ -223,3 +223,24 @@ drv_constraint_1D(ghl_constraint, 'slider1d_gun_handLIK', 0.06)
### Set up smear effect drivers for axe ### Set up smear effect drivers for axe
#drv_blend_1D('Key', 'smear_down', 'slider1d_axe_smear', 0.03) #drv_blend_1D('Key', 'smear_down', 'slider1d_axe_smear', 0.03)
#drv_blend_1D('Key', 'smear_up', 'slider1d_axe_smear', -0.03) #drv_blend_1D('Key', 'smear_up', 'slider1d_axe_smear', -0.03)
# Enforce deformation bones for FBX export
def mfx(boneName: str): # Mark for export
rig.data.bones[boneName].use_deform = True
EXPORT_LIST = [
'DEF-spine.005', # Helmet
'camera_head',
'camera_base',
'grip_baton', # Baton
'jetpack_grip', # Jetpack
'grip_gun', # Gun
'gun_ammunition',
'gun_trigger',
'gun_muzzle',
]
if True:
for b in EXPORT_LIST:
mfx(b)

View File

@ -1,7 +1,7 @@
import bpy import bpy
# Get export directory # Get export directory
path: str = bpy.data.filepath path: str = bpy.data.filepath.replace('\\Shelby', '').replace('\\Tommy', '')
pathPrefix = max(path.rfind('animations/'), path.rfind('animations\\')) pathPrefix = max(path.rfind('animations/'), path.rfind('animations\\'))
pathStart = pathPrefix + len('animations/') pathStart = pathPrefix + len('animations/')
pathEnd = max(path.rfind('/'), path.rfind('\\')) pathEnd = max(path.rfind('/'), path.rfind('\\'))