Page 1 of 1

pigeon_template code stuck

Posted: Tue May 09, 2017 10:57 am
by Mroki
Hello,

In the Pigeon Template the code is getting stuck in the create rig script during the; rig = rigs_old.IkQuadrupedBackLegRig('leg', side) section. This happened once and I was able to restart Maya and it went away but now it seems to be persistent. I'm wondering if you have changed something in your modules that is not allowing the code to run. The error I get is below.

Traceback (most recent call last):
V: File "N:/proddev/rig_dev\vtool\process_manager\process.py", line 1513, in run_script
V: module.main()
V: File "N:/projects/kody/kk01/production/build/rig/process_manager/chr/bird/body/.code/create_rig/create_rig.py", line 38, in main
V: create_leg(side)
V: File "N:/projects/kody/kk01/production/build/rig/process_manager/chr/bird/body/.code/create_rig/create_rig.py", line 241, in create_leg
V: create_ik_leg(leg_joints, side)
V: File "N:/projects/kody/kk01/production/build/rig/process_manager/chr/bird/body/.code/create_rig/create_rig.py", line 245, in create_ik_leg
V: rig = rigs_old.IkQuadrupedBackLegRig('leg', side)
V: File "N:/proddev/rig_dev\vtool\maya_lib\rigs_old.py", line 26, in __init__
V: super(IkQuadrupedBackLegRig, self).__init__(description, side)
V: File "N:/proddev/rig_dev\vtool\maya_lib\rigs.py", line 3215, in __init__
V: super(IkAppendageRig, self).__init__(description, side)
V: TypeError: super(type, obj): obj must be an instance or subtype of type

Re: pigeon_template code stuck

Posted: Wed May 10, 2017 9:06 am
by louisVottero
Is there anything like:

Code: Select all

from vtool.maya_lib import rigs
reload(rigs)  
in the scripts in the Vetala ui?
I will check my code tonight to see, but it looks like something is getting reloaded when it shouldn't.

Re: pigeon_template code stuck

Posted: Wed May 10, 2017 9:51 am
by louisVottero
If you could check:

N:/projects/kody/kk01/production/build/rig/process_manager/chr/bird/body/.code/create_rig/create_rig.py

for any reload(rigs) or reload(rigs_old) statements.
Remove them
and restart maya

it should work.

I check the rigs_old module and its not happening there. It has to be in create_rig.py

The reason is that sometimes when reloading modules the inheritance dependency of the classes gets out of sync.
Generally its not good to reload modules in the scripts that live in Vetala UI.

Let me know if this wasn't the issue.

Re: pigeon_template code stuck

Posted: Wed May 10, 2017 11:11 am
by Mroki
Thank you louis,

Deleting the reload rigs from the create rigs script fix the problem. Thank you for answering my question so quickly.

Re: pigeon_template code stuck

Posted: Wed May 10, 2017 3:08 pm
by louisVottero
Woot! Happy to hear it worked.