-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Triggers are when the value of one node is based off of the value of another node switching. This can be thought graphically as the following:
However, this happens frequently enough that it might be useful to have prescribed methods for it. Certainly there should be some kind of relation given of the following form:
def Rtrigger(trig, prev_trig, switch_val, val):
switched = trig != prev_trig
if switched:
return switch_val
return val
But it might be even more useful to describe a pseudo-node method that allows you to calculate trig
and prev_trig
are different nodes. To implement them you need to create an edge making them the same value, and then add a index_via
method that constrains them to be one index offset from each other. This is messy and slow. I assume that when we solve #6 this can be addressed because we can pass the same node twice, though the index_via
method remains.