Page 1 of 1

Help: FootRollRig: list index out of range

Posted: Sat Feb 20, 2016 4:28 am
by alynch
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?

Re: Help: list index out of range

Posted: Sat Feb 20, 2016 10:14 am
by louisVottero
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 4786 times

Re: Help: FootRollRig: list index out of range

Posted: Mon Feb 22, 2016 1:46 am
by alynch
That did it, thanks.