Live(?) macro

Discuss macro programming, and post any new macros here!
joebataz
Posts: 93
Joined: Tue Nov 12, 2013 4:55 am

Live(?) macro

Post by joebataz »

Just got eight of a fixture with 6 channels of control. I put four on 65-96 (nothing on 71 -74,87-90) and I put the other four on 97-128 (nothing on 103 -106 ,119-122). So I wrote a simple macro that when executed would copy all the channels from 65-96 to 97-128. Thought I had it working but instead I'm getting something much different. WITHOUT firing off the macro, when I change any of the channels in the 65-96 the corresponding channel in 97-128 mirrors the change.
First off, this is sorta OK but now I can't set the left side (65-96) without setting the right side (97-128) and I'm baffled as to why this happens without me asking DMXIS to do it.
Any ideas or did I miss something??
Macro below (couldn't get file uploaded?????)...

THANKS!!
Joe B


selCh=[]
selVal=[]
selLevel=[]
selBand=[]
selAttack=[]
selRelease=[]
selDir=[]
selType=[]
selAmount=[]
selChase=[]
selSpeed=[]
selShape=[]

for i in range(65,96):
ch = GetSelCh(i)
selCh.append(ch)
selVal.append(GetChVal(ch))
selLevel.append(GetStLevel(ch))
selBand.append(GetStBand(ch))
selAttack.append(GetStAttack(ch))
selRelease.append(GetStRelease(ch))
selDir.append(GetStDir(ch))
selType.append(GetOscType(ch))
selAmount.append(GetOscAmount(ch))
selChase.append(GetOscChase(ch))
selSpeed.append(GetOscSpeed(ch))
selShape.append(GetOscShape(ch))


for i in range(97,128):
ch = selCh
SetChVal(ch, selVal)
SetStLevel(ch, selLevel)
SetStBand(ch, selBand)
SetStAttack(ch, selAttack)
SetStRelease(ch, selRelease)
SetStDir(ch, selDir)
SetOscType(ch, selType)
SetOscAmount(ch, selAmount)
SetOscChase(ch, selChase)
SetOscSpeed(ch, selSpeed[i])
SetOscShape(ch, selShape[i])

Message("Wash Copied")