Andrei2k
11 November 2011, 05:35 AM
I am trying to do two things in a utility node network and I have run into a wall.
The first issue is I am trying to trigger an attribute when a value on another is hit. For example an attr goes oscillated from 0 to 1. When 0 is hit another attribute becomes -1 and when 1 is hit that same attribute goes to 1 until 0 is hit and it switches again...
The second is to create a counter for oscillations. It seems like I have to detect when the change is direction (positive or negative) happens and then do something as a result but Im at a loss on how to detect direction change.
Any ideas?
The first issue is I am trying to trigger an attribute when a value on another is hit. For example an attr goes oscillated from 0 to 1. When 0 is hit another attribute becomes -1 and when 1 is hit that same attribute goes to 1 until 0 is hit and it switches again...
The second is to create a counter for oscillations. It seems like I have to detect when the change is direction (positive or negative) happens and then do something as a result but Im at a loss on how to detect direction change.
Any ideas?