//
// Post Transform User Interface (UI) Mel Script
//
global proc meshArchivesUI() 
{
string $selected[] = `ls -sl`;
int $i;
  
for( $i=0; $i < size($selected); $i++ ) 
    {
    string $attr = `rmanGetAttrName "postTransformScript"`;
    string $transformName = $selected[$i];
    
    // "Connect" to the mel script that calls 
    // Pixar's custom Ri mel procedures.
    rmanAddAttr $transformName $attr "meshArchivesRI";
    
    $attr = `rmanGetAttrName "ma_path"`;
    rmanAddAttr $transformName $attr "";
  
    $attr = `rmanGetAttrName "ma_radial_offset"`;
    rmanAddAttr $transformName $attr "1.0";
  
    $attr = `rmanGetAttrName "ma_use_normals"`;
    rmanAddAttr $transformName $attr "1";
    
    $attr = `rmanGetAttrName "ma_jitter"`;
    rmanAddAttr $transformName $attr "0.0";
  
    $attr = `rmanGetAttrName "ma_yrot"`;
    rmanAddAttr $transformName $attr "0.0";
  
    $attr = `rmanGetAttrName "ma_scale"`;
    rmanAddAttr $transformName $attr "0.0";
    }
}