|
|
@@ -935,11 +935,17 @@ if out_idim:
|
|
|
out_idim = options.out_idim.split(",")
|
|
|
x1 = 40
|
|
|
for i,v in enumerate(out_idim):
|
|
|
- if type(v) is str:
|
|
|
- v=0
|
|
|
- _t = {"name":"CFG_OUT{}".format(i+1),"x1":x1,"y1":60,"x2":0,"y2":0 ,"w":30,"h":30,"on":1,"DMX-CH":v}
|
|
|
- CFG_OUT.append(_t)
|
|
|
- x1 += p*8
|
|
|
+ print("--out-idim",[i,v])
|
|
|
+ _t={}
|
|
|
+ try:
|
|
|
+ v = int(v)
|
|
|
+ _t = {"name":"CFG_OUT{}".format(i+1),"x1":x1,"y1":60,"x2":0,"y2":0 ,"w":30,"h":30,"on":1,"DMX-CH":v}
|
|
|
+ print(_t,v)
|
|
|
+ CFG_OUT.append(_t)
|
|
|
+ x1 += p*8
|
|
|
+ except Exception as e:
|
|
|
+ print("err",_t,color="red")
|
|
|
+ print("err",e,color="red")
|
|
|
|
|
|
CFG_BLOCK = {"name":"CFG_BLOCK","size":16,"h-split":2,"v-split":2,"h-count":8,"v-count":8}
|
|
|
|