Loop Value with ADM


#1

Hey guys,

I need to make a value scale up from 0 to 255 and back to 0 to 255 in a infinite loop.

The simpler idea would be an animated Scalar, from 0 to 255 with an Out of Range set to Cycle.
It would work just fine IF i wouldn’t need something else. :smiley:

I want it to be very flexible. I need to control how fast (or slow) it goes from 0 to 255 with an Exposed Parameter, like a multiplier. The problem is that I can’t multiply this value since it can’t go over 255.

As you might have noticed, i’m controlling colors. Here’s the scene file:
https://www.dropbox.com/s/ozb5xhyq2o5jcpd/Cycling%20Colors.rar?dl=0

Thx :slight_smile:


#2

I could fake a 2nd cycle here but still have no idea on how to make goes forever.

https://www.dropbox.com/s/nsrgs9vxs6ulqtm/Cycling%20Colors_B.rar?dl=0

in this case, when the values is >255 it switches to function that subrtracts 255 from the original value.

Still kinda useless, just want to keep it up to date so, maybe, someone can have an idea based on it.


#3

Done! Just realised a much more elegant solution. :slight_smile:

I’m using a Sin function to make values go from 0 to 255 and back to 0… Works just fine like this :beer:

Here’s the file in case anyone gets interested.
http://goo.gl/0LUh3N


#4

Dude that is awesome! nice work :smiley:


#5

Thx John :beer:

I’ve learned what a Sin function does on a Houdini tutorial. Would love to understand what all of those other functions do! :slight_smile: