Fix binary files not being stored with LFS, add mesh body exports
This commit is contained in:
parent
07be7e1278
commit
9622d40359
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -6,3 +6,6 @@
|
||||
*.kra filter=lfs diff=lfs merge=lfs -text
|
||||
*.clip filter=lfs diff=lfs merge=lfs -text
|
||||
*.wav filter=lfs diff=lfs merge=lfs -text
|
||||
*.hdr filter=lfs diff=lfs merge=lfs -text
|
||||
*.fbx filter=lfs diff=lfs merge=lfs -text
|
||||
*.blend filter=lfs diff=lfs merge=lfs -text
|
||||
|
Binary file not shown.
BIN
characters/insurrectionist/models/body_asset/mesh_body_hp.fbx
(Stored with Git LFS)
Normal file
BIN
characters/insurrectionist/models/body_asset/mesh_body_hp.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
characters/insurrectionist/models/body_asset/mesh_body_lp.fbx
(Stored with Git LFS)
Normal file
BIN
characters/insurrectionist/models/body_asset/mesh_body_lp.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
characters/insurrectionist/p5-baking.blend
(Stored with Git LFS)
Normal file
BIN
characters/insurrectionist/p5-baking.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
import bpy
|
||||
from bpy.types import Constraint, PoseBone
|
||||
|
||||
rig = bpy.data.objects["insurrectionist"]
|
||||
rig = bpy.data.objects["skeleton_insurrectionist"]
|
||||
|
||||
## FIX PARENTS
|
||||
def reparent(b: str, newParent: str = 'DEF-spine'):
|
||||
@ -116,10 +116,12 @@ for b in rig.pose.bones:
|
||||
arrcopy(b.lock_rotation, [True, True, True])
|
||||
arrcopy(b.lock_scale, [True, True, True])
|
||||
b.lock_rotation_w = True
|
||||
elif b.name == "axe_gripadjust":
|
||||
b.custom_shape_scale_xyz = (1.0, 0.8, 0.1)
|
||||
|
||||
# Constrain menu sliders so they are limited to proper bounds
|
||||
constrain_slider(rig.pose.bones.get('slider1d_axe_gripadjust'))
|
||||
constrain_slider(rig.pose.bones.get('slider1d_axe_thrust'))
|
||||
constrain_slider(rig.pose.bones.get('slider1d_axe_lefthand_grip'))
|
||||
constrain_slider(rig.pose.bones.get('slider1d_axe_smear'), -0.03, 0.03)
|
||||
|
||||
# Arm and Hand switch for Axe Base
|
||||
@ -134,5 +136,17 @@ if axe_base is not None:
|
||||
axe_constraint.owner_space = 'POSE'
|
||||
axe_constraint.influence = 0.0
|
||||
|
||||
## Set up driver constraint for the switch
|
||||
# Left-Hand grip switch for Axe
|
||||
left_hand = rig.pose.bones.get("hand_ik.L")
|
||||
lh_constraint: Constraint = None
|
||||
if axe_base is not None:
|
||||
lh_constraint = left_hand.constraints.new('COPY_TRANSFORMS')
|
||||
lh_constraint.target = rig
|
||||
lh_constraint.subtarget = 'axe_grip_lefthand' # note subtarget uses name not object
|
||||
lh_constraint.target_space = 'POSE'
|
||||
lh_constraint.owner_space = 'POSE'
|
||||
lh_constraint.influence = 0.0
|
||||
|
||||
## Set up driver constraint for the switches
|
||||
drv_constraint_1D(axe_constraint, 'slider1d_axe_gripadjust', 0.06)
|
||||
drv_constraint_1D(lh_constraint, 'slider1d_axe_lefthand_grip', 0.06)
|
||||
|
BIN
hdris/empty_warehouse_01_2k.hdr
(Stored with Git LFS)
Normal file
BIN
hdris/empty_warehouse_01_2k.hdr
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
hdris/kloofendal_misty_morning_puresky_2k.hdr
(Stored with Git LFS)
Normal file
BIN
hdris/kloofendal_misty_morning_puresky_2k.hdr
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user