def main_artsync(universe, ip='127.0.0.1', tmp=5, pause=5): target_ip = ip packet_size = 512 port = 6454 a = StupidArtnet(target_ip, port, universe, packet_size) anim = Animation(filename, a) anim.anime_pause_artsync(Animation.anime_1, tmp, pause)
def main_artsync(universe1, universe2, ip1='127.0.0.1', ip2='127.0.0.1', tmp=0.5, pause=5): packet_size = 512 port = 6454 a1 = StupidArtnet(ip1, port, universe1, packet_size) a2 = StupidArtnet(ip2, port, universe2, packet_size) anim = Animation(filename, a1, a2) anim.anime_pause_artsync(Animation.anime_1, tmp, pause)