Question about importing IK control rigs through Maya API or Python


I have a question about importing and also exporting control rigs, I hope this is the best place for it:

I am writing a tool that will automatically import control rigs from my current importer.

Is there a way to call a external function so I can import a rig / export a rig through the Character controls:

Something along the lines of:



Thank you!


Okay, I now understand how the IK actually works, with the XML file. UPDATE to my question What exactly is a control rig, just so I can generate it and then attach them to the skeleton.