Now that we have updated the Carbon Stitch node in Carbon Cloth for Maya with procedural stitching support, its easy to script panel stitching.
To get you started we have created an example script.
See procedural scripting in action in this video -
vimeo.com/443425675