Creating Blind Data Templates through MEL

I'm working on a MEL script tool for our artists that will create Blind Data Templates on the fly (if it is not already in the scene) and apply the Blind Data to a selected set of faces.

Does anyone have any info on how I can create Blind Data Templates without relying on the Blind Data Editor window?

Thanks!

Not entirely sure how you want to go about it but a command of the type

createNode blindDataTemplate -n "blindDataTemplate1";
addAttr -ci true -sn "Surf" -ln "TSurf" -at "long";
setAttr -s 5 ".bdui";
setAttr ".bdui[0].bdun" -type "string" "typeTag";
setAttr ".bdui[0].bduv" -type "string" "TrixterSurfaceType";
setAttr ".bdui[1].bdun" -type "string" "assocType";
setAttr ".bdui[1].bduv" -type "string" "any";
setAttr ".bdui[3].bdun" -type "string" "freeSet";
setAttr ".bdui[3].bduv" -type "string" "1";
setAttr ".bdui[4].bdun" -type "string" "dataCount";
setAttr ".bdui[4].bduv" -type "string" "1";
setAttr ".bdui[5].bdun" -type "string" "TrixterST";
setAttr ".bdui[5].bduv" -type "string" "int";

will create a blindData template within your scene. If you have a specific way in which you want to set up your blind data template you can set it up using the blind data editor, save your scene as MA and do a search for createNode blindDataTemplate and then use the subsequent lines to code for the template you wish to create. Hope this helps in some way