2
$\begingroup$

I want the value of this node's y-location between somewhere around these 2 values (preferably using drivers)

enter image description here enter image description here

what's the best way to do this? I plan on giving this to 3 other nodes as well

$\endgroup$
4
  • $\begingroup$ At the moment those are just typed in values - which can be easily limited by not typing something out of range ;) The question is, in which way will these values change, where do they get changes from? Depending on the source of the variaton the solutions might differ. $\endgroup$ Commented Nov 20, 2022 at 15:07
  • $\begingroup$ first, i recommend not asking "what is the best way..." because you have a high risk that your question will be closed. Better ask, "what are ways to..." $\endgroup$
    – Chris
    Commented Nov 20, 2022 at 15:09
  • 1
    $\begingroup$ @Chris didn't know that. will definitely keep that in mind $\endgroup$
    – desperrrr
    Commented Nov 20, 2022 at 15:28
  • $\begingroup$ i had to learn this the hard way too....my questions were closed in minutes ... ;) $\endgroup$
    – Chris
    Commented Nov 20, 2022 at 15:29

1 Answer 1

1
$\begingroup$

you can clamp two values by this:

enter image description here

This is just an example.

The expression is

min(max(yourMinValue, valueToEvaluate), yourMaxValue)

or

clamp(valueToEvaluate,min,max)

result of my example:

enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .