Jump to content

Chops increasing value


sessionbeer

Recommended Posts

Hey,

I was hoping someone could help me out with a CHOPS set up I'm stuck on. I'm looking for a channel to continuesly increase over time at a set rate, but with added intervales? That may no make sense so I have set up a scene to decirbe it. The image below show the white line which is what I'm after. Its a mix of the red (contast increasing value) with the sine wave pink line, but only the positve values, which then get added to the red line.

Sorry if that's confussing, CHOPS is confussing!

Any help would be really apprciated!

chops_increase.png

Chops_Increase_01.hip

Link to comment
Share on other sites

There are 2 nodes that are your friend in this case. 'Slope' and 'area', these differentiate and integrate the curve.

Slope coverts the 'position" data into a velocity and the area converts back to pos.

I haven't got Houdini to hand so I'll have to explain the workflow.

 

Basically, connect your input into a slope node. Then use a limit node to clamp the negative values to 0, max can be a huge number. When you connect this output into an area node, you will find that all downward motion is replaced by flat regions.

There may be a constant you have to add as an initial value.

This works great with noise as an input too for a random forward shuffle effect.

Shout if it doesn't appear to work and I'll see if I can get a hip file later. 

JD

 

Edited by houdiniJD
Link to comment
Share on other sites

chopsIncreasing02.gif

chopsIncreasing01.gif

Here is an edit of your original file with the tweaks in place. The two yellow lines were your input curves and the blue, is the output.

By calculating the [slope] of the sine waves and the straight increasing line and returning the max of both slopes, you get an intermediate channel that is always positive. (i have added the limit node in place just in case the input curves all have a downward slope at any point).

When this is passed into a new [area] node, the 'white' curve you are looking for (values may need to be tweaked or clamped).

Hope this helps.

JD




 

 

Chops_Increase_02.hipnc

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...