Recursively set primary visibility for selected objects