//
// Post Transform User Interface (UI) Mel Script
//
global proc PlaceOnNurbsUI() 
{
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 "PlaceOnNurbsRI";
    
    $attr = `rmanGetAttrName "ppon_archive"`;
    rmanAddAttr $transformName $attr "";
  
    $attr = `rmanGetAttrName "ppon_hyper_node"`;
    rmanAddAttr $transformName $attr "";
  
    $attr = `rmanGetAttrName "ppon_density"`;
    rmanAddAttr $transformName $attr "200";
  
    $attr = `rmanGetAttrName "ppon_threshold"`;
    rmanAddAttr $transformName $attr "0.5";
  
    }
}