[ANSWERED] Looking for an actor...
-
Hi Team. I am looking for an actor, or an actor that can tell me if a single incoming value is going higher or lower. A single input, with two output triggers: Increasing and Decreasing. I guess I could do this with JavaScript, but I was sure I had done this with an actor before... any ideas?
-
Hi G - I use Value Delay Line with a Comparator.
-
@dbini Yes like that I thing with the notify property of the comparator set to always
-
Thanks both - that will do it. Cheers.
Funny isn't it - sometimes the simple ones catch you out.
-
I would love a Value Delay that has a time input. So you could specify how long you want the changes in values to delay for. I made one once that really was too complicated, involving 2 values that control the x and y of a small dot generated in a Shapes actor, the resulting video is fed through a Video Delay into an Eyes, which outputs the 2 values as x and y of the dot. It worked ok, but was quite resource-heavy. I wonder if Python could achieve a similar result?
-
@dbini said:
I would love a Value Delay that has a time input. So you could specify how long you want the changes in values to delay for. I made one once that really was too complicated, involving 2 values that control the x and y of a small dot generated in a Shapes actor, the resulting video is fed through a Video Delay into an Eyes, which outputs the 2 values as x and y of the dot. It worked ok, but was quite resource-heavy. I wonder if Python could achieve a similar result?
I've added delay to data before in this situation using the Data Array actor.
-
@dbini said:
I wonder if Python could achieve a similar result?
Python or Javascript, shouldn't have any problem with this.
Just restart a timer when a new value arrives, and have a pulsed trigger that has the time checked constantly, making updates as needed.