I’ve managed to build a quite complicated rig for a school assignment without any pre or post custom steps. Being unable to rebuild the rig after creating all the custom attributes and connections left me feeling that I’m not using mGear to its fullest. For the next rigs, I’d like to create all these custom attributes and connections with custom steps. I think I found the right place in the mGear documentation but I’m unable to make it work. Miquel’s tutorial series stops on steps quite a lot but covers only importing mesh, skins and creating gimmick joints.
So my main question would be where to start learning about it? I’m specifically interested in creating attributes, connecting them and setting the ranges of input/output connections.
Another question for future reference. I’d like to create 2D cutout character with switchable textures. Is it possible to automate this sort of rigging with custom steps?: https://www.youtube.com/watch?v=C5wu0P4tjyk Is it even a right approach for this sort of thing?
For example, what am I doing wrong in this script?:
import mgear.shifter.custom_step as cstp import mgear.maya.attribute as att class CustomShifterStep(cstp.customShifterMainStep): def __init__(self): self.name = "addAttributes" def run(self, stepDict): att.addEnumAttribute(self.local_C0_ctl, "Name", ["Alejandro", "Ed", "Kathryn", "Presila", "Sean", "Peter"] )
Thank you and sorry if it’s too basic what I’m asking for!
PS Here’s the clip I did for my school assignment: