map_layerane_altitude = 0.0 # square coordinates : vertices that compose each of the square. vertices = [(-1.0, 1.0, -1.0), (1.0, 1.0, -1.0), (1.0, -1.0, -1.0), (-1.0, -1.0, -1.0)] face = [0, 1, 2, 3] # # LJ inits # layer = 0 # Setup LJ library mandatory properties. lj.Config(redisIP, ljscene, "square") # You can define properties for each drawn "element" : name, intensity, active, xy, color, red, green, blue, layer , closed Leftsquare = lj.FixedObject('Leftsquare', True, 255, [], red, 255, 0, 0, layer, True) Rightsquare = lj.FixedObject('Rightsquare', True, 255, [], blue, 0, 255, 0, layer, True) # 'Destination' for given layer : name, number, active, layer , scene, laser Dest0 = lj.DestObject('0', 0, True, 0, 0, 0) # Dest0 will send layer 0 points to scene 0, laser 0 # # Anaglyph computation : different X coordinate for each eye #
alink.Start() linked = True else: print("Link DISABLED") linked = False # Mode song if args.song == True: print("Mode SONG") mode = "song" else: print("Mode LIVE") mode = "live" lj.Config(redisIP, ljscene, "aurora") ccs = [[0] * 140] * 4 # Layer FXs FXs = [ "ScanH", "ScanV", "Wave", "Circle", "Dot00", "Zero", "Maxwell", "Starfield", "Trckr", "Word" ] AllFXDisplay = [True, True, True, True] # Animation parameters for each layer Layer = [] * lasernumber Stars = [] for l in range(lasernumber):
alink.Start() linked = True else: print("Link DISABLED") linked = False # Mode song if args.song == True: print("Mode SONG") mode = "song" else: print("Mode LIVE") mode = "live" lj.Config(redisIP, ljscene, "maxwell") ccs = [[0] * 140] * 4 # Animation parameters for each layer Layer = [{ 'scandots': 10, 'mixer': 0, 'color': red, 'scale': 1, 'intensity': 255 }] * 3 LayerX = [{ 'coord': 250, 'rotspeed': 0,
else: debug = 0 # Redis Computer IP if args.redisIP != None: redisIP = args.redisIP else: redisIP = '127.0.0.1' # myIP if args.myIP != None: myIP = args.myIP else: myIP = '127.0.0.1' r = lj.Config(redisIP, 255, "artnet") lj.WebStatus("Artnet init...") def lhex(h): return ':'.join(x.encode('hex') for x in h) def senddmx0(): for channel in range(1, 512): senddmx(channel, 0) def senddmx(channel, value):
(- 1.0, 1.0,- 1.0), ( 1.0, 1.0,- 1.0), ( 1.0,- 1.0,- 1.0), (- 1.0,- 1.0,- 1.0) ] face = [0,1,2,3] # # LJ inits # layer = 0 # Setup LJ library mandatory properties for this plugin lj.Config(redisIP, ljscene, "custom1") # Define properties for each drawn "element" : name, intensity, active, xy, color, red, green, blue, layer , closed Leftsquare = lj.FixedObject('Leftsquare', True, 255, [], red, 255, 0, 0, layer , True) Rightsquare = lj.FixedObject('Rightsquare', True, 255, [], green, 0, 255, 0, layer , True) # 'Destination' for given layer : name, number, active, layer , scene, laser Dest0 = lj.DestObject('0', 0, True, 0 , 0, 0) # Dest0 will send layer 0 points to scene 0, laser 0 # # Anaglyph computation : different X coordinate for each eye # def LeftShift(elevation):