Compare commits
No commits in common. "0e8db219c2cc97c869eaf60a8108cfcb1c0363a1" and "5e26faa798a20e049dae207f86ab305079dcc775" have entirely different histories.
0e8db219c2
...
5e26faa798
42
LJ.conf
42
LJ.conf
@ -2,7 +2,7 @@
|
|||||||
lasernumber = 4
|
lasernumber = 4
|
||||||
debug = 0
|
debug = 0
|
||||||
ljayserverip = 0.0.0.0
|
ljayserverip = 0.0.0.0
|
||||||
wwwip = 0.0.0.0
|
wwwip = 192.168.2.43
|
||||||
nozoscip = 127.0.0.1
|
nozoscip = 127.0.0.1
|
||||||
bhoroscip = 127.0.0.1
|
bhoroscip = 127.0.0.1
|
||||||
autostart = artnet
|
autostart = artnet
|
||||||
@ -10,7 +10,7 @@ autostart = artnet
|
|||||||
[laser0]
|
[laser0]
|
||||||
color = -1
|
color = -1
|
||||||
type = DS1000
|
type = DS1000
|
||||||
ip = 127.0.0.1
|
ip = 192.168.2.44
|
||||||
kpps = 25000
|
kpps = 25000
|
||||||
centerx = -393
|
centerx = -393
|
||||||
centery = 390
|
centery = 390
|
||||||
@ -23,9 +23,9 @@ swapx = -1
|
|||||||
swapy = -1
|
swapy = -1
|
||||||
lsteps = [ (1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
|
lsteps = [ (1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
|
||||||
warpdest = [[-1500., 1500.],
|
warpdest = [[-1500., 1500.],
|
||||||
[ 1500., 1500.],
|
[ 1500., 1500.],
|
||||||
[ 1500.,-1500.],
|
[ 1500.,-1500.],
|
||||||
[-1500.,-1500.]]
|
[-1500.,-1500.]]
|
||||||
|
|
||||||
[laser1]
|
[laser1]
|
||||||
color = -1
|
color = -1
|
||||||
@ -43,9 +43,9 @@ swapx = -1
|
|||||||
swapy = -1
|
swapy = -1
|
||||||
lsteps = [ (1.0, 2),(0.25, 1), (0.75, 1), (1.0, 5)]
|
lsteps = [ (1.0, 2),(0.25, 1), (0.75, 1), (1.0, 5)]
|
||||||
warpdest = [[-1500., 1500.],
|
warpdest = [[-1500., 1500.],
|
||||||
[ 1500., 1500.],
|
[ 1500., 1500.],
|
||||||
[ 1500.,-1500.],
|
[ 1500.,-1500.],
|
||||||
[-1500.,-1500.]]
|
[-1500.,-1500.]]
|
||||||
|
|
||||||
[laser2]
|
[laser2]
|
||||||
color = -1
|
color = -1
|
||||||
@ -54,8 +54,8 @@ ip = 192.168.2.6
|
|||||||
kpps = 25000
|
kpps = 25000
|
||||||
centerx = 0
|
centerx = 0
|
||||||
centery = 0
|
centery = 0
|
||||||
zoomx = 79.0
|
zoomx = 79
|
||||||
zoomy = 82.0
|
zoomy = 82
|
||||||
sizex = 32000
|
sizex = 32000
|
||||||
sizey = 32000
|
sizey = 32000
|
||||||
finangle = 0.2792526803190927
|
finangle = 0.2792526803190927
|
||||||
@ -63,29 +63,29 @@ swapx = -1
|
|||||||
swapy = -1
|
swapy = -1
|
||||||
lsteps = [(1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
|
lsteps = [(1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
|
||||||
warpdest = [[-1500., 1500.],
|
warpdest = [[-1500., 1500.],
|
||||||
[ 1500., 1500.],
|
[ 1500., 1500.],
|
||||||
[ 1500.,-1500.],
|
[ 1500.,-1500.],
|
||||||
[-1500.,-1500.]]
|
[-1500.,-1500.]]
|
||||||
|
|
||||||
[laser3]
|
[laser3]
|
||||||
color = -1
|
color = -1
|
||||||
type = LUKE400
|
type = LUKE400
|
||||||
ip = 192.168.2.4
|
ip = 192.168.2.4
|
||||||
kpps = 25000
|
kpps = 25000
|
||||||
centerx = 2531
|
centerx = -3797
|
||||||
centery = -1
|
centery = -1
|
||||||
zoomx = 90.0
|
zoomx = 51.0
|
||||||
zoomy = 75.0
|
zoomy = 48.0
|
||||||
sizex = 32000
|
sizex = 32000
|
||||||
sizey = 32000
|
sizey = 32000
|
||||||
finangle = 0.0
|
finangle = 0.0
|
||||||
swapx = 1
|
swapx = -1
|
||||||
swapy = 1
|
swapy = -1
|
||||||
lsteps = [(1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
|
lsteps = [(1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
|
||||||
warpdest = [[-1500., 1500.],
|
warpdest = [[-1500., 1500.],
|
||||||
[ 1500., 1500.],
|
[ 1500., 1500.],
|
||||||
[ 1500.,-1500.],
|
[ 1500.,-1500.],
|
||||||
[-1500.,-1500.]]
|
[-1500.,-1500.]]
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
plugins = {
|
plugins = {
|
||||||
|
@ -65,8 +65,6 @@ lsteps is a string like "[ (1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]"
|
|||||||
|
|
||||||
/regen : regen webui index html page.
|
/regen : regen webui index html page.
|
||||||
|
|
||||||
/plugins/start pluginame
|
|
||||||
/plugins/stop pluginame
|
|
||||||
|
|
||||||
/pl/clientnumber/lasernumber value : value is the pointlist to draw as string type. For string format see code in clients directory.
|
/pl/clientnumber/lasernumber value : value is the pointlist to draw as string type. For string format see code in clients directory.
|
||||||
|
|
||||||
@ -101,7 +99,7 @@ r = redis.StrictRedis(host=gstt.LjayServerIP , port=6379, db=0)
|
|||||||
#r = redis.StrictRedis(host=gstt.LjayServerIP , port=6379, db=0, password='-+F816Y+-')
|
#r = redis.StrictRedis(host=gstt.LjayServerIP , port=6379, db=0, password='-+F816Y+-')
|
||||||
|
|
||||||
|
|
||||||
GenericCommands = ["start","align","ljclient","scene","addest","deldest","dest","clientnumber","vcvrack","fft","mitraille","faceosc","midigen","viewgen","audiogen","noteon","cc","ljpong","ljwars","mouse","emergency","simu","status","run","nozoid","planet","live","words","ai","bank0","pose","lj","cycl","glyph","pong","maxw","custom1","square","regen","trckr","aurora","line1","ForwardUI","settings","debug","pl","plugins"]
|
GenericCommands = ["start","align","ljclient","scene","addest","deldest","dest","clientnumber","vcvrack","fft","mitraille","faceosc","midigen","viewgen","audiogen","noteon","cc","ljpong","ljwars","mouse","emergency","simu","status","run","nozoid","planet","live","words","ai","bank0","pose","lj","cycl","glyph","pong","maxw","custom1","square","regen","trckr","aurora","line1","ForwardUI","settings","debug","pl"]
|
||||||
|
|
||||||
|
|
||||||
def UserOn(laser):
|
def UserOn(laser):
|
||||||
@ -329,30 +327,6 @@ def handler(oscpath, args):
|
|||||||
print("Back to normal for laser ", laser)
|
print("Back to normal for laser ", laser)
|
||||||
UserOn(laser)
|
UserOn(laser)
|
||||||
|
|
||||||
# Plugins commands :
|
|
||||||
elif oscpath[1] == "plugins":
|
|
||||||
# /plugins/start pluginame
|
|
||||||
if oscpath[2] == "start":
|
|
||||||
print()
|
|
||||||
print("Starting plugin :",args[0])
|
|
||||||
print()
|
|
||||||
plugins.Start(args[0])
|
|
||||||
|
|
||||||
# /plugins/stop pluginame
|
|
||||||
if oscpath[2] == "stop":
|
|
||||||
print()
|
|
||||||
print("Stopping plugin :",args[0])
|
|
||||||
print()
|
|
||||||
plugins.Kill(args[0])
|
|
||||||
|
|
||||||
# /plugins/restart pluginame
|
|
||||||
if oscpath[2] == "restart":
|
|
||||||
print()
|
|
||||||
print("Restarting plugin :",args[0])
|
|
||||||
print()
|
|
||||||
plugins.Restart(args[0])
|
|
||||||
|
|
||||||
|
|
||||||
# Settings commands :
|
# Settings commands :
|
||||||
elif oscpath[1] == "settings":
|
elif oscpath[1] == "settings":
|
||||||
if oscpath[2] == "lasers":
|
if oscpath[2] == "lasers":
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# coding=UTF-8
|
# coding=UTF-8
|
||||||
'''
|
'''
|
||||||
nozoscip
|
|
||||||
LJ Global state
|
LJ Global state
|
||||||
v0.8.0
|
v0.8.0
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ xy_center = [screen_size[0]/2,screen_size[1]/2]
|
|||||||
|
|
||||||
LjayServerIP = '192.168.1.13'
|
LjayServerIP = '192.168.1.13'
|
||||||
oscIPin = '192.168.1.15'
|
oscIPin = '192.168.1.15'
|
||||||
nozoscIP = '192.168.1.15'
|
nozoscip = '192.168.1.15'
|
||||||
wwwIP = '192.168.1.15'
|
wwwIP = '192.168.1.15'
|
||||||
|
|
||||||
# gstt.Laser select to what laser modifcation will occur.
|
# gstt.Laser select to what laser modifcation will occur.
|
||||||
|
@ -987,7 +987,7 @@ def Text(message, c, layer, xpos, ypos, resize, rotx, roty, rotz):
|
|||||||
for xy in char_layer_list:
|
for xy in char_layer_list:
|
||||||
char_draw.append((xy[0] + x_offset,xy[1],c))
|
char_draw.append((xy[0] + x_offset,xy[1],c))
|
||||||
i +=1
|
i +=1
|
||||||
print(ch, c, xpos, ypos, resize, char_draw)
|
#print ch,char_layer_list,char_draw
|
||||||
rPolyLineOneColor(char_draw, c, layer , False, xpos, ypos, resize, rotx, roty, rotz)
|
rPolyLineOneColor(char_draw, c, layer , False, xpos, ypos, resize, rotx, roty, rotz)
|
||||||
#dots.append(char_draw)
|
#dots.append(char_draw)
|
||||||
|
|
||||||
|
@ -182,11 +182,12 @@ def OSCsend(name, oscaddress, oscargs =''):
|
|||||||
# for each plugin will automatically add /pluginame before oscpath to send like /aurora/scim 1, if oscpath = "/scim 1"
|
# for each plugin will automatically add /pluginame before oscpath to send like /aurora/scim 1, if oscpath = "/scim 1"
|
||||||
def SendAll(oscpath):
|
def SendAll(oscpath):
|
||||||
|
|
||||||
print("Sending to all plugins ", "/pluginame"+oscpath)
|
if gstt.debug > 0:
|
||||||
|
print("Sending to all plugins ", oscpath)
|
||||||
|
|
||||||
for plugin in list(gstt.plugins.keys()):
|
for plugin in list(gstt.plugins.keys()):
|
||||||
if gstt.debug > 0:
|
if gstt.debug > 0:
|
||||||
print("sending ","/"+plugin+oscpath,"to", plugin)
|
print("sending ",oscpath,"to", plugin)
|
||||||
#sendWSall("/"+ plugin + "/start 0")
|
#sendWSall("/"+ plugin + "/start 0")
|
||||||
Send(plugin, "/"+plugin+oscpath)
|
Send(plugin, "/"+plugin+oscpath)
|
||||||
|
|
||||||
|
@ -321,10 +321,9 @@ def Circle(LAY):
|
|||||||
|
|
||||||
def Word(LAY):
|
def Word(LAY):
|
||||||
|
|
||||||
lj.Text(LAY['word'], c = LAY['color'], layer = LAY['number'], xpos = 300, ypos = 300, resize = LAY['scale']*20, rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
|
|
||||||
#lj.Text(LAY['word'], c = LAY['color'], layer = LAY['number'], xpos = LAY['Xcoord'], ypos = LAY['Ycoord'], resize = LAY['scale']*10, rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
|
lj.Text(LAY['word'], c = LAY['color'], layer = LAY['number'], xpos = LAY['Xcoord']+LAY['lineSize']/2, ypos = LAY['Ycoord'], resize = LAY['scale']*10, rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
|
||||||
#lj.rPolyLineOneColor([(x/2,y/2),((x+1)/2,(y+1)/2)], c = LAY['color'], layer = l, xpos = 0, ypos = 0, resize = LAY['scale'], rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
|
#lj.rPolyLineOneColor([(x/2,y/2),((x+1)/2,(y+1)/2)], c = LAY['color'], layer = l, xpos = 0, ypos = 0, resize = LAY['scale'], rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
|
||||||
#lj.rPolyLineOneColor([(x/2,y/2,0),((x+1)/2,(y+1)/2,0)], c = z2color(Field['stars'][starnumber][2], LAY['color']), layer = LAY['number'], closed = False, xpos = -200, ypos = 0, resize = LAY['scale'], rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
|
|
||||||
|
|
||||||
|
|
||||||
def Dot00(LAY):
|
def Dot00(LAY):
|
||||||
@ -591,7 +590,7 @@ for lifes in range(0,lifenb,1):
|
|||||||
entities.append([randint(100,width-100), randint(100,height-100), random(), randint(45,16700000), randint(-2,2)])
|
entities.append([randint(100,width-100), randint(100,height-100), random(), randint(45,16700000), randint(-2,2)])
|
||||||
|
|
||||||
|
|
||||||
#print("Butterlfy entities :", entities)
|
print("entities", entities)
|
||||||
wingpos = random()
|
wingpos = random()
|
||||||
|
|
||||||
|
|
||||||
|
@ -179,9 +179,8 @@ print()
|
|||||||
log.infog("Aurora v0.1b")
|
log.infog("Aurora v0.1b")
|
||||||
|
|
||||||
OSCinPort = 8090
|
OSCinPort = 8090
|
||||||
ljscene = 0
|
|
||||||
|
|
||||||
StartFXs = ["anim.Trckr", "anim.Word","anim.Starfield","anim.Starfield"]
|
ljscene = 0
|
||||||
|
|
||||||
# Useful variables init.
|
# Useful variables init.
|
||||||
white = lj.rgb2int(255,255,255)
|
white = lj.rgb2int(255,255,255)
|
||||||
@ -191,8 +190,6 @@ green = lj.rgb2int(0,255,0)
|
|||||||
cyan = lj.rgb2int(255,0,255)
|
cyan = lj.rgb2int(255,0,255)
|
||||||
yellow = lj.rgb2int(255,255,0)
|
yellow = lj.rgb2int(255,255,0)
|
||||||
|
|
||||||
StartColors = [white, blue, green, red]
|
|
||||||
|
|
||||||
screen_size = [700,700]
|
screen_size = [700,700]
|
||||||
xy_center = [screen_size[0]/2,screen_size[1]/2]
|
xy_center = [screen_size[0]/2,screen_size[1]/2]
|
||||||
|
|
||||||
@ -288,10 +285,10 @@ for l in range(lasernumber):
|
|||||||
|
|
||||||
Layer.append({'number': 0, 'FX': "user.User4",
|
Layer.append({'number': 0, 'FX': "user.User4",
|
||||||
'Xcoord': 45, 'Ycoord': 45, 'Zcoord': 0,
|
'Xcoord': 45, 'Ycoord': 45, 'Zcoord': 0,
|
||||||
'scandots': 64, 'scale': 45, 'color': white, "run": False,
|
'scandots': 64, 'scale': 45, 'color': red, "run": False,
|
||||||
'intensity': 255, 'closed': False,
|
'intensity': 255, 'closed': False,
|
||||||
'lineSize': 64, 'radius': 45, 'wavefreq': 3,
|
'lineSize': 64, 'radius': 45, 'wavefreq': 3,
|
||||||
'word': "Sonoptik",
|
'word': "hello",
|
||||||
'step': 0, 'steps': 60, 'stepmax': 60, 'stepvals': [],
|
'step': 0, 'steps': 60, 'stepmax': 60, 'stepvals': [],
|
||||||
'Xtransamt': 0, 'Ytransamt': 0, 'Ztransamt': 0,
|
'Xtransamt': 0, 'Ytransamt': 0, 'Ztransamt': 0,
|
||||||
'Xtranspeed': 0, 'Ytranspeed': 0, 'Ztranspeed': 0,
|
'Xtranspeed': 0, 'Ytranspeed': 0, 'Ztranspeed': 0,
|
||||||
@ -301,13 +298,10 @@ for l in range(lasernumber):
|
|||||||
})
|
})
|
||||||
|
|
||||||
Layer[l]['number']= l
|
Layer[l]['number']= l
|
||||||
Layer[l]['FX'] = StartFXs[l]
|
|
||||||
Layer[l]['color'] = StartColors[l]
|
|
||||||
|
|
||||||
multi = {"radius": 300 }
|
multi = {"radius": 300 }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Destination : name, number, active, layer , scene, laser)
|
# Destination : name, number, active, layer , scene, laser)
|
||||||
#
|
#
|
||||||
@ -498,7 +492,7 @@ def OSChandler(path, tags, args, source):
|
|||||||
# /aurora/scim
|
# /aurora/scim
|
||||||
if path.find('/aurora/scim') == 0:
|
if path.find('/aurora/scim') == 0:
|
||||||
|
|
||||||
print("OScim sending to LJ /scim",int(args[0])+24)
|
print("OScim sending to LJ2 /scim",int(args[0])+24)
|
||||||
lj.SendLJ("/scim", [int(args[0])+24])
|
lj.SendLJ("/scim", [int(args[0])+24])
|
||||||
|
|
||||||
'''
|
'''
|
||||||
@ -520,7 +514,7 @@ def OSCim(path, tags, args, source):
|
|||||||
|
|
||||||
newarg = path.split(" ")
|
newarg = path.split(" ")
|
||||||
newlaser = args[0]+24
|
newlaser = args[0]+24
|
||||||
print("OSim sending to LJ /scim",str(newlaser))
|
print("OSim sending to LJ2 /scim",str(newlaser))
|
||||||
lj.SendLJ("/scim", [newlaser])
|
lj.SendLJ("/scim", [newlaser])
|
||||||
print("sending knobs value for new layer")
|
print("sending knobs value for new layer")
|
||||||
UpdateKnobs(newlaser)
|
UpdateKnobs(newlaser)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
// LJ websocket address. IP will be updated at LJ startup according to LJ.conf wwwIP
|
// LJ websocket address. IP will be updated at LJ startup according to LJ.conf wwwIP
|
||||||
|
|
||||||
var LJ = 'ws://0.0.0.0:9001/'
|
var LJ = 'ws://192.168.2.43:9001/'
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -658,7 +658,7 @@
|
|||||||
<!-- LJ style WS : A nettoyer ! -->
|
<!-- LJ style WS : A nettoyer ! -->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var LJ = 'ws://0.0.0.0:9001/'
|
var LJ = 'ws://192.168.2.43:9001/'
|
||||||
|
|
||||||
var _WS = {
|
var _WS = {
|
||||||
uri: LJ,
|
uri: LJ,
|
||||||
|
@ -417,7 +417,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var LJ = 'ws://0.0.0.0:9001/'
|
var LJ = 'ws://192.168.2.43:9001/'
|
||||||
|
|
||||||
|
|
||||||
var pl = "";
|
var pl = "";
|
||||||
|
@ -231,7 +231,7 @@
|
|||||||
<!-- LJ style WS : A nettoyer ! -->
|
<!-- LJ style WS : A nettoyer ! -->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var LJ = 'ws://0.0.0.0:9001/'
|
var LJ = 'ws://192.168.2.43:9001/'
|
||||||
|
|
||||||
|
|
||||||
var _WS = {
|
var _WS = {
|
||||||
|
@ -197,7 +197,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var LJ = 'ws://0.0.0.0:9001/'
|
var LJ = 'ws://192.168.2.43:9001/'
|
||||||
|
|
||||||
|
|
||||||
var pl = "";
|
var pl = "";
|
||||||
|
@ -378,7 +378,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var LJ = 'ws://0.0.0.0:9001/'
|
var LJ = 'ws://192.168.2.43:9001/'
|
||||||
|
|
||||||
var _WS = {
|
var _WS = {
|
||||||
uri: LJ,
|
uri: LJ,
|
||||||
|
@ -378,7 +378,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var LJ = 'ws://0.0.0.0:9001/'
|
var LJ = 'ws://192.168.2.43:9001/'
|
||||||
|
|
||||||
var _WS = {
|
var _WS = {
|
||||||
uri: LJ,
|
uri: LJ,
|
||||||
|
Loading…
Reference in New Issue
Block a user