I am using the same script that appears in the facial rigging workshop. I follow the steps in the video to the letter, but an unexpected error appears and I don’t understand why it happens.
Especially in this line of code:
File "C:\Users\darwi\Documents\Mgear\Rigging\build\build facial/scripts/post/03_mouth_slide.py", line 43, in run
//     self.ghost_structure(stepDict)
19 Facial Data-Centric Rigging: 03c Mouth slide custom step
// SUCCEED: Custom Shifter Step Class: build facial/scripts/post/02_proportions.py. Succeed!!
    // EXEC: Executing custom step: build facial/scripts/post/03_mouth_slide.py
    // Interpolated Transform: mouth_C0_lipup_ctl_INTER_mouth_C0_liplow_ctl created
    // Result: rig_controllers_grp
    // Warning: mouthSlide_C0_ctl.uiHost_cnx don't have contrapart channel on mouthSlide_C0_ctl_ghost
    // Warning: mouthSlide_C0_ctl.compRoot don't have contrapart channel on mouthSlide_C0_ctl_ghost
    // Result: rig_controllers_grp
    // Result: rig_controllers_grp
    // Warning: mouthCorner_L0_ctl.uiHost_cnx don't have contrapart channel on mouthCorner_L0_ctl_ghost
    // Warning: mouthCorner_L0_ctl.compRoot don't have contrapart channel on mouthCorner_L0_ctl_ghost
    // Result: rig_controllers_grp
    // Result: rig_controllers_grp
    // Warning: mouthCorner_R0_ctl.uiHost_cnx don't have contrapart channel on mouthCorner_R0_ctl_ghost
    // Warning: mouthCorner_R0_ctl.compRoot don't have contrapart channel on mouthCorner_R0_ctl_ghost
    // Result: rig_controllers_grp
    // Error: An exception of type AttributeError occurred. 
    // Error: Traceback (most recent call last):
    //   File "C:\Users\darwi\Documents\mgear_4.2.2\release\scripts\mgear\shifter\guide.py", line 1365, in runStep
    //     cs.run(customStepDic)
    //   File "C:\Users\darwi\Documents\Mgear\Rigging\build\build facial/scripts/post/03_mouth_slide.py", line 43, in run
    //     self.ghost_structure(stepDict)
    //   File "C:\Users\darwi\Documents\Mgear\Rigging\build\build facial/scripts/post/03_mouth_slide.py", line 93, in ghost_structure
    //     stepDict["facial_base"].surface_slider,
    // AttributeError: 'CustomShifterStep' object has no attribute 'surface_slider'

 
      
    
 
 

