string $myMeshes[] = `ls -exactType "mesh"`; for ($n=0 ; $n 0 && ($check == 0)) { setAttr ($myMeshes[$n] + ".visibleInReflections") 1; setAttr ($myMeshes[$n] + ".visibleInRefractions") 1; warning ($myMeshes[$n] + " was not visible in reflections/refractions. Changed to be on.\n"); } } RedoPreviousRender;