10.05.2023, 07:30
Use an event script mapped to a tag that all the input objects also have. Don't tag output objects with the same tag or you will get an infinite loop.
event.dstraw variable can be used to calculate output group addresses.
This example will write an inverse binary value to a group address with the next middle address (A/B/C -> A/B+1/C).
You also need to clearly define your algorithm. If you say there are 60 input groups then there will be an overlap when writing to the output groups.
event.dstraw variable can be used to calculate output group addresses.
This example will write an inverse binary value to a group address with the next middle address (A/B/C -> A/B+1/C).
Code:
value = event.getvalue()
addr = event.dstraw + 256
grp.write(addr, not value)
You also need to clearly define your algorithm. If you say there are 60 input groups then there will be an overlap when writing to the output groups.