Patching question

Hello.
I’m a complete newbie with vvvv. At this time, I can’t step further anymore, thus I’m here to beg your help.

I’m trying to make a patch like as below.

  1. A sensor receives a value from 0 to 255 and this value will be used for an object in Y position.
  2. Default Y position of an object is 207 and incoming value through sensor will modify this value, thus it will move my object up or down to target position gradually (not abrupt jump to target position).
  3. Once imcoming value is released (-sensor deactivated), then object should go back to its default position, which is 207 gradually.

I thought it would be quite simple to make this patch. Now I realized how awful I am in using vvvv. :(
I hope there is simplest way to achieve this, maybe one node can solve everything I want…

Massive Thanks in advance.

Han.

everybody feells very little in front of vvvv…

for your value: the value received can be interpolate with a Map (Value ) Node: there you can remap the value to the delimited output needed.
you inrange (see the pins) should be 0-255 (dmx ?) and not 0-1, and your outrange 207 minima and whatelse maxima

smooth move:
damper is your friend to smooth the incoming value on float ( not 0. 1 . 2 but 0.0000 0.00001 0.000002 up to 2)
using captors (especiallay camera) IIIR from kalle s module is also your friend
see user page kalle and his modules

point 3 see patch

x.v4p (3.5 kB)

Thanks a lot karistouf.

I thinks it won’t be possible without if, then, else stuff to achieve my goal. It is obvious there is no one simple node which can solve my problem. Right?

Once again many thanks for your help :)

I just found myself that I tend to make patch into more and more complex and sophisticated(I think) way, even though there is really simple and short method. :(

“Switch” node was the answer for my trouble.

Han.

Han, conditionnal programmation ( if else , nor xor ) are obtainable thruth = node and most > < nodes that have 2 output: one straight, the other inversed.
the = node is very powerfull and enable you the non equal result.