im trying to get my first agent running, and having a bit of an issue.
its based on cfilter, and I want to activates some lights based on an external event.
in my python wrapper I have:
self[1] = atom.Atom(names='outputs')
self[1][1] = bundles.Output(OUT_LIGHT, False, names='light output', protocols='revconnect')
self.output = bundles.Splitter(self.domain, self[1][1])
self.osc = osc_input(self.domain, self.output.cookie(), "client_%d" % ordinal,"9001")
which makes its way down to piw::cfilter_t constructor.
ive defined a cfilterfunc_t with the method cfilterfunc_changed() overridden, and this is connected via
cfilterctl_create()
finally I call changed() on cfilter_t when I want the lights to change.
so my hope, was the lights outputs would be on the cfilter, such that when changed() was called,
I would get back a call on my cfilterfunc_changed()
however, this is not happening, I know im called changed(), but I dont get a callback.
Ive tried lots of different things :)
but the truth is, im not sure if this is how is supposed to work, or not... or if I have the wiring up of the lights incorrect... ( I guess because Im a bit unclear what 'root' represents in cfilter etc)
any help would be much appreciated!