Fit VOP

The Ultimate Houdini node reference

Visit the Node Bible

To learn more, please log in or sign up for free to explore the Node Bible.
Write your awesome label here.

Fit VOP

The fit vop is designed to take a range of attribute values and convert it to a different range of attribute values.
Drag to resize

Summary:

   The fit vop is great for when you'd like to change the range of values that an attribute has.  As an example, let's say that you have an attribute called "foo" with values that happen between -2 and -5.  You would like "foo" to have values that span between 0 and 1 though.  This is when you would want to use a fit vop.

    The source min and max are asking you, "where are the old min and max values?"  The destination min and max are asking you, "where would you like the new range to exist?"  So in this example, we would say that our old min/max is = -5 as the source min with -2 as the source max.  The destination min would be 0 and the destination max would be 1.  This would then bring the "foo" values to exist in a new range.

Drag to resize

Main Parameters:



Signature:

--  For all practical purposes, you can safely ignore the differences between the various options just as long as the data type matches whatever you connect to the "val" input.  By default, the signature ought to change as you connect different types of data to the "val."

Source Min:


--  This is asking you where the old minimum value exists.  To procedurally determine this, it's easiest to jump back up into sops, use an attribute promote, promote the min and max to the detail context, and then use a bind to bring that info into vops.  From there, you can plug in the min/max to the srcmax and srcmin.

Source Max:


--  See above.  This is the old maximum value.

Destination Min:


--  The new minimum value

Destination Max:


--  The new maximum value.