soupday / cc_blender_tools

Add-on for Blender, for importing and auto-setup of character creator 3 & 4 and iClone 7 & 8 character exports into Blender.
GNU General Public License v3.0
455 stars 82 forks source link

Cannot rigify character converted to "Game Base" in CC3 #60

Closed grascm closed 2 years ago

grascm commented 2 years ago

The main reason for this error is that game base character contains simplified armature. And addon always expect full armature.

Steps to reproduce:

  1. Press "Convert to Game base" button in CC3
  2. Press "Import Character" button in CC3 addon for blender.
  3. After succcessfull import press "Rigify" button in CC3 addon for blender.

Error logs in console window:

Beginning Rigify Process:
-------------------------
Generating Meta-Rig:
   Meta-Rig added.
   Removing face bones from Meta-Rig.
   Adding custom basic face bones to Meta-Rig.
      Adding bone: face
      Parenting bone: face to spine.006
      Adding bone: eye.L
      Parenting bone: eye.L to face
      Adding bone: eye.R
      Parenting bone: eye.R to face
      Adding bone: jaw
      Parenting bone: jaw to face
      Adding bone: teeth.T
      Parenting bone: teeth.T to face
      Adding bone: teeth.B
      Parenting bone: teeth.B to jaw
      Adding bone: tongue
      Parenting bone: tongue to jaw
      Adding bone: tongue.001
      Parenting bone: tongue.001 to tongue
      Adding bone: tongue.002
      Parenting bone: tongue.002 to tongue.001
   Aligning Meta-Rig.
      Mapping: spine from: CC_Base_Hip/
Error: source head bone: CC_Base_Hip not found!
      Mapping: spine.001 from: CC_Base_Waist/
Error: source head bone: CC_Base_Waist not found!
      Mapping: spine.002 from: CC_Base_Spine01/
Error: source head bone: CC_Base_Spine01 not found!
      Mapping: spine.003 from: CC_Base_Spine02/-CC_Base_NeckTwist01
Error: source head bone: CC_Base_Spine02 not found!
Error: source tail bone: CC_Base_NeckTwist01 not found!
      Mapping: spine.004 from: CC_Base_NeckTwist01/
Error: source head bone: CC_Base_NeckTwist01 not found!
      Mapping: spine.005 from: CC_Base_NeckTwist02/
Error: source head bone: CC_Base_NeckTwist02 not found!
      Mapping: spine.006 from: CC_Base_Head/CC_Base_Head
Error: source head bone: CC_Base_Head not found!
Error: source tail bone: CC_Base_Head not found!
      Mapping: face from: CC_Base_FacialBone/CC_Base_FacialBone
      Mapping: pelvis from: CC_Base_Pelvis/CC_Base_Pelvis
Error: source head bone: CC_Base_Pelvis not found!
Error: source tail bone: CC_Base_Pelvis not found!
      Mapping: breast.L from: CC_Base_L_Breast/CC_Base_L_Breast
Error: source head bone: CC_Base_L_Breast not found!
Error: source tail bone: CC_Base_L_Breast not found!
      Mapping: breast.R from: CC_Base_R_Breast/CC_Base_R_Breast
Error: source head bone: CC_Base_R_Breast not found!
Error: source tail bone: CC_Base_R_Breast not found!
      Mapping: thigh.L from: CC_Base_L_Thigh/
Error: source head bone: CC_Base_L_Thigh not found!
      Mapping: shin.L from: CC_Base_L_Calf/
Error: source head bone: CC_Base_L_Calf not found!
      Mapping: foot.L from: CC_Base_L_Foot/
Error: source head bone: CC_Base_L_Foot not found!
      Mapping: toe.L from: CC_Base_L_ToeBase/CC_Base_L_ToeBase
Error: source head bone: CC_Base_L_ToeBase not found!
Error: source tail bone: CC_Base_L_ToeBase not found!
      Mapping: shoulder.L from: CC_Base_L_Clavicle/CC_Base_L_Clavicle
Error: source head bone: CC_Base_L_Clavicle not found!
Error: source tail bone: CC_Base_L_Clavicle not found!
      Mapping: upper_arm.L from: CC_Base_L_Upperarm/
Error: source head bone: CC_Base_L_Upperarm not found!
      Mapping: forearm.L from: CC_Base_L_Forearm/
Error: source head bone: CC_Base_L_Forearm not found!
      Mapping: hand.L from: CC_Base_L_Hand/CC_Base_L_Hand
Error: source head bone: CC_Base_L_Hand not found!
Error: source tail bone: CC_Base_L_Hand not found!
      Mapping: palm.01.L from: CC_Base_L_Hand/-CC_Base_L_Index1
Error: source head bone: CC_Base_L_Hand not found!
Error: source tail bone: CC_Base_L_Index1 not found!
      Mapping: palm.02.L from: CC_Base_L_Hand/-CC_Base_L_Mid1
Error: source head bone: CC_Base_L_Hand not found!
Error: source tail bone: CC_Base_L_Mid1 not found!
      Mapping: palm.03.L from: CC_Base_L_Hand/-CC_Base_L_Ring1
Error: source head bone: CC_Base_L_Hand not found!
Error: source tail bone: CC_Base_L_Ring1 not found!
      Mapping: palm.04.L from: CC_Base_L_Hand/-CC_Base_L_Pinky1
Error: source head bone: CC_Base_L_Hand not found!
Error: source tail bone: CC_Base_L_Pinky1 not found!
      Mapping: thumb.01.L from: CC_Base_L_Thumb1/
Error: source head bone: CC_Base_L_Thumb1 not found!
      Mapping: f_index.01.L from: CC_Base_L_Index1/
Error: source head bone: CC_Base_L_Index1 not found!
      Mapping: f_middle.01.L from: CC_Base_L_Mid1/
Error: source head bone: CC_Base_L_Mid1 not found!
      Mapping: f_ring.01.L from: CC_Base_L_Ring1/
Error: source head bone: CC_Base_L_Ring1 not found!
      Mapping: f_pinky.01.L from: CC_Base_L_Pinky1/
Error: source head bone: CC_Base_L_Pinky1 not found!
      Mapping: thumb.02.L from: CC_Base_L_Thumb2/
Error: source head bone: CC_Base_L_Thumb2 not found!
      Mapping: f_index.02.L from: CC_Base_L_Index2/
Error: source head bone: CC_Base_L_Index2 not found!
      Mapping: f_middle.02.L from: CC_Base_L_Mid2/
Error: source head bone: CC_Base_L_Mid2 not found!
      Mapping: f_ring.02.L from: CC_Base_L_Ring2/
Error: source head bone: CC_Base_L_Ring2 not found!
      Mapping: f_pinky.02.L from: CC_Base_L_Pinky2/
Error: source head bone: CC_Base_L_Pinky2 not found!
      Mapping: thumb.03.L from: CC_Base_L_Thumb3/CC_Base_L_Thumb3
Error: source head bone: CC_Base_L_Thumb3 not found!
Error: source tail bone: CC_Base_L_Thumb3 not found!
      Mapping: f_index.03.L from: CC_Base_L_Index3/CC_Base_L_Index3
Error: source head bone: CC_Base_L_Index3 not found!
Error: source tail bone: CC_Base_L_Index3 not found!
      Mapping: f_middle.03.L from: CC_Base_L_Mid3/CC_Base_L_Mid3
Error: source head bone: CC_Base_L_Mid3 not found!
Error: source tail bone: CC_Base_L_Mid3 not found!
      Mapping: f_ring.03.L from: CC_Base_L_Ring3/CC_Base_L_Ring3
Error: source head bone: CC_Base_L_Ring3 not found!
Error: source tail bone: CC_Base_L_Ring3 not found!
      Mapping: f_pinky.03.L from: CC_Base_L_Pinky3/CC_Base_L_Pinky3
Error: source head bone: CC_Base_L_Pinky3 not found!
Error: source tail bone: CC_Base_L_Pinky3 not found!
      Mapping: thigh.R from: CC_Base_R_Thigh/
Error: source head bone: CC_Base_R_Thigh not found!
      Mapping: shin.R from: CC_Base_R_Calf/
Error: source head bone: CC_Base_R_Calf not found!
      Mapping: foot.R from: CC_Base_R_Foot/
Error: source head bone: CC_Base_R_Foot not found!
      Mapping: toe.R from: CC_Base_R_ToeBase/CC_Base_R_ToeBase
Error: source head bone: CC_Base_R_ToeBase not found!
Error: source tail bone: CC_Base_R_ToeBase not found!
      Mapping: shoulder.R from: CC_Base_R_Clavicle/CC_Base_R_Clavicle
Error: source head bone: CC_Base_R_Clavicle not found!
Error: source tail bone: CC_Base_R_Clavicle not found!
      Mapping: upper_arm.R from: CC_Base_R_Upperarm/
Error: source head bone: CC_Base_R_Upperarm not found!
      Mapping: forearm.R from: CC_Base_R_Forearm/
Error: source head bone: CC_Base_R_Forearm not found!
      Mapping: hand.R from: CC_Base_R_Hand/CC_Base_R_Hand
Error: source head bone: CC_Base_R_Hand not found!
Error: source tail bone: CC_Base_R_Hand not found!
      Mapping: palm.01.R from: CC_Base_R_Hand/-CC_Base_R_Index1
Error: source head bone: CC_Base_R_Hand not found!
Error: source tail bone: CC_Base_R_Index1 not found!
      Mapping: palm.02.R from: CC_Base_R_Hand/-CC_Base_R_Mid1
Error: source head bone: CC_Base_R_Hand not found!
Error: source tail bone: CC_Base_R_Mid1 not found!
      Mapping: palm.03.R from: CC_Base_R_Hand/-CC_Base_R_Ring1
Error: source head bone: CC_Base_R_Hand not found!
Error: source tail bone: CC_Base_R_Ring1 not found!
      Mapping: palm.04.R from: CC_Base_R_Hand/-CC_Base_R_Pinky1
Error: source head bone: CC_Base_R_Hand not found!
Error: source tail bone: CC_Base_R_Pinky1 not found!
      Mapping: thumb.01.R from: CC_Base_R_Thumb1/
Error: source head bone: CC_Base_R_Thumb1 not found!
      Mapping: f_index.01.R from: CC_Base_R_Index1/
Error: source head bone: CC_Base_R_Index1 not found!
      Mapping: f_middle.01.R from: CC_Base_R_Mid1/
Error: source head bone: CC_Base_R_Mid1 not found!
      Mapping: f_ring.01.R from: CC_Base_R_Ring1/
Error: source head bone: CC_Base_R_Ring1 not found!
      Mapping: f_pinky.01.R from: CC_Base_R_Pinky1/
Error: source head bone: CC_Base_R_Pinky1 not found!
      Mapping: thumb.02.R from: CC_Base_R_Thumb2/
Error: source head bone: CC_Base_R_Thumb2 not found!
      Mapping: f_index.02.R from: CC_Base_R_Index2/
Error: source head bone: CC_Base_R_Index2 not found!
      Mapping: f_middle.02.R from: CC_Base_R_Mid2/
Error: source head bone: CC_Base_R_Mid2 not found!
      Mapping: f_ring.02.R from: CC_Base_R_Ring2/
Error: source head bone: CC_Base_R_Ring2 not found!
      Mapping: f_pinky.02.R from: CC_Base_R_Pinky2/
Error: source head bone: CC_Base_R_Pinky2 not found!
      Mapping: thumb.03.R from: CC_Base_R_Thumb3/CC_Base_R_Thumb3
Error: source head bone: CC_Base_R_Thumb3 not found!
Error: source tail bone: CC_Base_R_Thumb3 not found!
      Mapping: f_index.03.R from: CC_Base_R_Index3/CC_Base_R_Index3
Error: source head bone: CC_Base_R_Index3 not found!
Error: source tail bone: CC_Base_R_Index3 not found!
      Mapping: f_middle.03.R from: CC_Base_R_Mid3/CC_Base_R_Mid3
Error: source head bone: CC_Base_R_Mid3 not found!
Error: source tail bone: CC_Base_R_Mid3 not found!
      Mapping: f_ring.03.R from: CC_Base_R_Ring3/CC_Base_R_Ring3
Error: source head bone: CC_Base_R_Ring3 not found!
Error: source tail bone: CC_Base_R_Ring3 not found!
      Mapping: f_pinky.03.R from: CC_Base_R_Pinky3/CC_Base_R_Pinky3
Error: source head bone: CC_Base_R_Pinky3 not found!
Error: source tail bone: CC_Base_R_Pinky3 not found!
      Mapping: tongue from: CC_Base_Tongue03/CC_Base_Tongue02
      Mapping: tongue.001 from: CC_Base_Tongue02/CC_Base_Tongue01
      Mapping: tongue.002 from: CC_Base_Tongue01/CC_Base_JawRoot
      Mapping: teeth.T from: CC_Base_Teeth01/CC_Base_Teeth01
      Mapping: teeth.B from: CC_Base_Teeth02/CC_Base_Teeth02
      Mapping: eye.R from: CC_Base_R_Eye/
      Mapping: eye.L from: CC_Base_L_Eye/
      Mapping: eye.L from: CC_Base_L_Eye/
      Mapping: jaw from: CC_Base_JawRoot/CC_Base_Tongue03
Python: Traceback (most recent call last):
  File "C:\Users\grasc\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\rigging.py", line 1827, in execute
    self.add_meta_rig(chr_cache)
  File "C:\Users\grasc\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\rigging.py", line 1792, in add_meta_rig
    match_meta_rig(chr_cache, self.cc3_rig, self.meta_rig)
  File "C:\Users\grasc\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\rigging.py", line 1212, in match_meta_rig
    restore_bone_roll(meta_rig, roll_store)
  File "C:\Users\grasc\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\rigging.py", line 871, in restore_bone_roll
    bone.roll = roll_store[target_name] + roll_mod * 0.0174532925199432957
KeyError: 'spine'

location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
  File "C:\Users\grasc\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\rigging.py", line 1827, in execute
    self.add_meta_rig(chr_cache)
  File "C:\Users\grasc\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\rigging.py", line 1792, in add_meta_rig
    match_meta_rig(chr_cache, self.cc3_rig, self.meta_rig)
  File "C:\Users\grasc\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\rigging.py", line 1212, in match_meta_rig
    restore_bone_roll(meta_rig, roll_store)
  File "C:\Users\grasc\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\cc3_blender_tools-1_3_2\rigging.py", line 871, in restore_bone_roll
    bone.roll = roll_store[target_name] + roll_mod * 0.0174532925199432957
KeyError: 'spine'

location: <unknown location>:-1