Aller au contenu principal

Recherche

How do I make L2 and R2 work as buttons

  • jon-blue-eyes

    So can you use an OR to convert it into a on/off ...1/0?

    So wire the trigger output into an or, then chain that to where you want it.

  • jon-blue-eyes

    The logic behind this is that the OR always returns either true:false or 1:0. So an OR is saying “return true if either inputs are non zero”... so you can just wire up one of the inputs. The controller will deliver a non zero value... and voila!

  • skillphiliac

    But where do you get your second input? Or's premise is still a binary value, which you don't get unless you crank the L2 or R2 up all the way (I think it ranges from 0 to 1).

    It's really simple, to be honest. If you do any logic, I highly recommend to take the calc gadget and just play with it, get to know all the modes and operations so you'll know what does what. Specifically, rounding up should be the way to go, at least in terms of visual simplicity. Can't say for sure it is the most efficient way, but that likely won't matter anyway - you can always build on that knowledge anyway.

    Drag out a calculator gadget. Set it to round up (or just round if you don't want slight taps to register but only make it jump from 0 to 1 at the trigger's halfway point), wire it into the keyframe - bam, works like a charm. You can hover over wires to see the detailed signal after pausing the scene, although I'd recommend either using a signal manipulator or another calculator so you can monitor how the signal behaves, in case you need to troubleshoot stuff.

    The default behavior is for keyframes to blend between values of 0 and 1. If you drag in a signal generator and wire it into the keyframe, you'll see it smoothly oscillating between both states, to name one of a billion examples. You could also use an exponential curve (calc again, for example) so you initially get very granular control over the animation and more and more exaggerated animation the further you press.

  • mmdev1 - John & Luci

    Hi,

    I always use the maths gadget for this and set it to greater than something like 0.9 that means when you press the trigger button more than 90% it will turn on max,
    Tweak the greater than number to get the desired pressure you want to consider on

    Hope that helps

    John

  • skillphiliac

    Since people might not be too familiar with the workings: The "greater than" gadget (any comparators) has a binary output, meaning that if the condition is satisfied, the output node will show 1. It'll be 0 for all the other cases, so here you get, once again, an abrupt skip, which is exactly what you want.

    Also, if that is too skippy, adjusting the keyframe wind-up (the upper slider) would be one of the easiest ways to make a smooth (but still binary) animation - if so desired.

  • Supposer

    You can also use the signal manipulator to get a similar effect.

  • jon-blue-eyes

    Yeah I just tried the “or” method I posted and it doesn’t work.

Vous devez vous connecter pour laisser un commentaire.