Make genBar more generic with number of lights in rigger.def