Home Website Youtube GitHub

Plebes -> Custom .json fails on Constrain To Rig

Hello, as name suggest, I am having an issue constrain the rig to my custom skeleton.

Using button Constrain to Rig give me this error →
Error: TypeError: file C:\Users\prdle\Documents\maya\modules\scripts\mgear\shifter\plebes.py line 111: Plebes.constrain_to_rig() missing 1 required positional argument: ‘nothing’

Dont know if thats a bug, or me doing something wrong.

My “custom” .json is just Mixamo template with small changes to some joints names ( Such as RightToe_End to only RightToe and etc… simple changes )

Any ideas please ? :pray:
Thanks in advance

I had a quick look at the code, and simply changed this

def constrain_to_rig(self, nothing):

to this

def constrain_to_rig(self):

which seems to fix the issue. I am not fully Python focused person and have basic knowledge, but it looked like the argument was not even used ? At least from what I can see I might be fully wrong.

This tho seems fix my issue and now my rig is functional.

2 Likes

Hi @ezSonix
Can you create a ticket on github? I will check this.
Also if you have created the .json for CC4 characters and want to share it, I will add it to the release.
Thanks!

Hey @Miquel
Sorry the custom .json was not for CC4 but for our own skeleton hierarchy, nothing that would help others if shared, sorry :pray:

Regarding the ticket, created here → https://github.com/mgear-dev/mgear/issues/502

Let me know if its OK like this please :slight_smile:

1 Like