// Generated by Cutter v7.7.8 at 11:14:1 on the 9.23.2017.
// The source document on which this mel script is based is,
// "/Users/malcolm/Documents/maya/projects/RfM_mel/particleInstancer.rman"
// Cutter software by Malcolm Kesson (all rights reserved).
// Script Version: 2
// Pre Shape User Interface (UI) Mel Script
//
global proc particleInstancerUI()
{
string $selected[] = `ls -sl`;
int $i;
for($i = 0; $i < size($selected); $i++ ) {
string $shp[] = `listRelatives -shapes $selected[$i]`;
// To add the UI implemented by this proc to the "Geometric
// Settings" panel use the following mel commands,
// select rmanSettings;
// particleInstancerUI;
// where "rmanSettings" might be rmanSettings1, rmanSettings2 etc.
if(`nodeType $selected[$i]` == "RenderMan")
$shp[0] = $selected[$i];
string $shapeName = $shp[0];
string $attr = `rmanGetAttrName "preShapeScript"`;
// "Connect" to the mel script that calls
// Pixar's custom Ri mel procedures.
rmanAddAttr $shapeName $attr "particleInstancerRI";
$attr = `rmanGetAttrName "pi_ignore"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_archive"`;
rmanAddAttr $shapeName $attr "RIB_Archive";
$attr = `rmanGetAttrName "pi_xyzOffset"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_scaleMin"`;
rmanAddAttr $shapeName $attr "1";
$attr = `rmanGetAttrName "pi_scaleMax"`;
rmanAddAttr $shapeName $attr "1";
$attr = `rmanGetAttrName "pi_xrotMin"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_xrotMax"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_yrotMin"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_yrotMax"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_zrotMin"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_zrotMax"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_cull"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "pi_useRotations"`;
rmanAddAttr $shapeName $attr "0";
}
}