chrisedu Posted September 15, 2006 Share Posted September 15, 2006 Hello list sorry if this is a silly question but I am needing help on invert $LIFE values on a pop network. I will drive a metaball value based on $LIFE parameters, and would like to know if I can do it with a node inside POP network... thx for any advice chris Quote Link to comment Share on other sites More sharing options...
SpencerL Posted September 15, 2006 Share Posted September 15, 2006 invert = -$LIFE complement = 1-$LIFE so if you want life to go from 1 - 0 vs 0 - 1, use 1 - $LIFE. The inverse is just -$LIFE. Quote Link to comment Share on other sites More sharing options...
chrisedu Posted September 15, 2006 Author Share Posted September 15, 2006 invert =-$LIFE complement = 1-$LIFE so if you want life to go from 1 - 0 vs 0 - 1, use 1 - $LIFE. The inverse is just -$LIFE. Thx a lot! simple and logical bests chris Quote Link to comment Share on other sites More sharing options...
old school Posted September 16, 2006 Share Posted September 16, 2006 A more general (and more expensive but more flexible) solution is to use the fit() or one if it's variants fit01() fit11() and fit10(). e.g.: fit($LIFE, 0, 1, 1, 0) remaps $LIFE to the complement. In this case, yes 1-$LIFE is more efficient but remapping to another range requires offsets and multipliers. A simpler version: fit01($LIFE, 1, 0) where you know $LIFE will be between 0 and 1 hence the name fit01. You can remap the range to whatever you want. fit01($LIFE, 0.8, -0.2) will remap $LIFE going from 0 - 1 to 0.8 - -0.2 and so on.... Hope this is helpful. Perhaps too much information. Quote Link to comment Share on other sites More sharing options...
jhiggins Posted October 10, 2006 Share Posted October 10, 2006 A more general (and more expensive but more flexible) solution is to use the fit() or one if it's variants fit01() fit11() and fit10().e.g.: fit($LIFE, 0, 1, 1, 0) remaps $LIFE to the complement. In this case, yes 1-$LIFE is more efficient but remapping to another range requires offsets and multipliers. A simpler version: fit01($LIFE, 1, 0) where you know $LIFE will be between 0 and 1 hence the name fit01. You can remap the range to whatever you want. fit01($LIFE, 0.8, -0.2) will remap $LIFE going from 0 - 1 to 0.8 - -0.2 and so on.... Hope this is helpful. Perhaps too much information. try using the Age POP and $AGE instead, unless you like getting into expressions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.