alynch
Posts: 11
Joined: Mon Feb 15, 2016 11:15 pm

Help: FootRollRig: list index out of range

When i run this code

Code: Select all

    joints = ['joint_foot_%s' % side, 
                'joint_heel_%s' % side,
                'joint_ball_%s' % side, 
                'joint_toe_%s' % side, 
                'joint_yawin_%s' % side, 
                'joint_yawout_%s' % side]
    rig = rigs.FootRollRig('foot', side)
    rig.set_joints(joints)
    rig.set_attribute_control('CNT_LEG_BTM_1_%s' % side)
    rig.create()
i'm getting an error that i can figure out

Code: Select all

	Traceback (most recent call last):	
  File "C:/Program Files (x86)/Vetala Beta 0.1.5\vtool\process_manager\process.py", line 1293, in run_script	
    module.main()	
  File "C:/Users/User/Documents/process_manager/project/Rigging/chr/GavinCrab/body/.code/rig_legs/rig_legs.py", line 14, in main	
    create_feet(side)	
  File "C:/Users/User/Documents/process_manager/project/Rigging/chr/GavinCrab/body/.code/rig_legs/rig_legs.py", line 71, in create_feet	
    rig.create()	
  File "C:/Program Files (x86)/Vetala Beta 0.1.5\vtool\maya_lib\rigs.py", line 4708, in create	
    self._define_joints()	
  File "C:/Program Files (x86)/Vetala Beta 0.1.5\vtool\maya_lib\rigs.py", line 4473, in _define_joints	
    self.yawIn = self.ik_chain[self.yawIn_index]	
IndexError: list index out of range
Any ideas what i'm doing wrong?
louisVottero
Site Admin
Posts: 202
Joined: Sat Aug 29, 2015 8:50 am

Re: Help: list index out of range

Make sure the hierarchy and parent/child order of your foot joints look like this:
foot_joint_hierarchy.PNG
foot_joint_hierarchy.PNG (2.83 KiB) Viewed 4756 times
alynch
Posts: 11
Joined: Mon Feb 15, 2016 11:15 pm

Re: Help: FootRollRig: list index out of range

That did it, thanks.

Return to “Help”