here's a simple script that will do it. it is written to toggle the modes from 0 to 1 if they're at 0, or vice versa. i wrote it so that whatever is selected will be effected, so select whatever you want then run this:
string $temp[] = ls -sl -l
;
string $thing;
for ($thing in $temp)
{
string $pvis = ($thing + ".primaryVisibility");
string $visR = ($thing + ".visibleInRefractions");
int $temp_flag = 0;
$temp_flag = getAttr $pvis
;
if ($temp_flag == 1)
{
setAttr $pvis 0;
setAttr $visR 0;
}
else
{
setAttr $pvis 1;
setAttr $visR 1;
}
}
/////////////end
cheers,
TJ Galda
Character Technical Director and Animator
Nelvana [http://www.nelvana.com]