'set driven key' in houdini

   5389   2   2
User Avatar
Member
58 posts
Joined: July 2005
Offline
is there any expression that can map values from one range to another range. ‘fit’ expression only can do linear mapping, i'm looking more advance expression similar to ‘driven key’ in maya. with ‘driven key’, i can do a non-linear mapping. example : map 0,5,10 to 0,30,10000. the ‘fit’ can only map 0,5 to 0,30
anyone can help?

thx,
clay~
User Avatar
Member
1192 posts
Joined: July 2005
Offline
Lookup CHOP might be useful. It uses a channel to lookup values in another.

Dragos
Dragos Stefan
producer + director @ www.dsg.ro
www.dragosstefan.ro
User Avatar
Member
306 posts
Joined: July 2005
Offline
Try using the chf() function… type exhelp chf in the textport.

Create a spare channel or a param of an hda, set keyframes on this channel or put expressions into or however you want to define the function.

Then reference it with something like chf(“../myFunctionChannel”, ch(“../myInputChannel”))

This is a roll your own version of maya's driven keys.

Hope this helps,
Rangi.
“First things first – but not necessarily in that order”
– The Doctor
  • Quick Links