global proc mesh2CloudUI()
{
string $selected[] = `ls -sl`;
int $i;
for($i=0; $i < size($selected); $i++)
{
string $shp[] = `listRelatives -shapes $selected[$i]`;
string $shapeName = $shp[0];
string $attr = `rmanGetAttrName "preShapeScript"`;
rmanAddAttr $shapeName $attr "mesh2CloudRI";
$attr = `rmanGetAttrName "m2c_cache"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "m2c_size"`;
rmanAddAttr $shapeName $attr "0.5";
$attr = `rmanGetAttrName "m2c_height"`;
rmanAddAttr $shapeName $attr "1.0";
$attr = `rmanGetAttrName "m2c_jitter"`;
rmanAddAttr $shapeName $attr "0.2";
$attr = `rmanGetAttrName "m2c_volume"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "m2c_previs"`;
rmanAddAttr $shapeName $attr "0";
$attr = `rmanGetAttrName "m2c_dup"`;
rmanAddAttr $shapeName $attr "1";
$attr = `rmanGetAttrName "m2c_Prims0"`;
rmanAddAttr $shapeName $attr "\"freq\" [2.5] [5.0];";
$attr = `rmanGetAttrName "m2c_Prims1"`;
rmanAddAttr $shapeName $attr "\"Cs\" [1 1 1] [1 0.8 0.8];";
}
}
|