newbie number box question
Hi all! I’m new to Max and picked it up during the awesome sale :) I’m currently working my way through the tutorials and just am a little stuck. I’m wondering if there is any way to set the number box to be a float, and am also wondering if I can change the float number boxes in the tutorials to int number box–essentially I am wondering where do I go to change the number box integer or float attribute. I tried going to the inspector and don’t see an easy way to change it. Currently I’m copying and pasting float number boxes.
Thanks! That works really great!
Also, if you use "n" to make a new number box, then type "i" or "f", you’ll get the "object-box" version of each of the number boxes. They do the same thing but don’t have interaction, so they can be used for storing numbers and they take up less CPU because they appear static.
You can use up and down arrows on integer boxes, and you can "aim" on the decimal place in floats for more precision with the mouse. Holding Shift will change how the mouse interacts. Also, the right outlet sends a bang if the number box has focus (triangle highlight) and you press tab, which you can send to a "select" message to cycle through a series of them, see patch below.
One caveat: if you are in a number box, any [key] commands that the number box understands (numbers, backspace, return, tab, decimal, negative sign) will be captured by the box. So if you’re using numbers and [key] to control other processes, they won’t work while a box is selected.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 868.3oc2XssbaBCD8Y6uBUxKoy3jAItXn8o9CzY5ycxjQ.J1JwH4AD4Ryj+8 hjfDbLXKvLzz7PDQKZEm83ytqfmmOyJh+HI2B7MvuAyl877YyTljFlUMelUJ 9w3M3b0xrh4ooDlvZg9dBxiBkcdFHdCM9NvZRFAbdLlAhH.bgfmhEjjuV6.q HkWH1PDpsytx5MblHm9GhzFDcYs4sYj7xGFVP4rqyHwBMRCgkq.f7VJuXWM. tp1IrHdMkspoCnFNfrC0WZ3SIpnrZPAqLRSzQVzsWffVMPJCmpPp0Oxn3MVx a7x74xgEFxhLxCka6djnXMMWAeRV67Epxp1j3osDc.ZYsn7uWCmtny8YFGGE WDpt3O.hw9.DS0cxw2WCyy9oDn6Dl.quKGN6WxQBKQaAb0.X0TRdNdEYOZMm rQFvsxnvNYzixlsKNqXTyEm63fqRoBC55m.z9+D.CGWsYWY35z6RdJmlP.BN HgbHh8TRsggg8K0txAnmcuUvvfwk95RDtdpze9Z8jsswBPufFb3PTfKmjpiT AG2SRjVpiGRUwJFwWcw0+vhJmVXD+oIm7AI1k4jaKDfywrD.iytPO+KiZOWG O+2ZQzCU0RcqWX+as.8FWNLpPH3rdJfhvrUVGJLcgKuzqTp3nKe6TOZdX5Nn TjhzndeHAY1vh2GS8UF3pxLbg8s5hlfFRAZzwOhwVbVocAI6ZBCGsQsB6wqx ycjmZmpcOBUu+kSnZjslACk5stYP6VXP3zTMRfi.h0Y7hUqGVomtZuqKhLnt 61SS28I8HlHO8oczmbzjjvW8XnGxbr6v+Op7EB4nSkLm4p8XnkuBltpWeHDm vpjUm.So3W8XnhSuOGhSniuVpYNyU6wPEm9eZEm6SVAtmlJy8+MUVKGVM3zj KivIwTOKqMT16+riJ3JsuKmkyKxhqC+5O2A3MHmPxETlJUpwhjeVpFKZMMIg vZdBjDZtDcIcqlMFO9FfG4aHCfSCdPlfG+oieflfG2OX3AMY3YoIx4iflTZx VdYsgpTJjef5cR8UU7bp9VFMlDpK.ndyU4++1iezBKOCBqfIijC1I8qczrbx PiqAbyzkf5a.23MYnAY.ZFZwBcuG71s2Sxxq1REPJ6LeKOSN0egZJkomp1Qq Lx8z506NWtauL+u.Ro9S5A -----------end_max5_patcher-----------
Wow! Thanks for the great info :)
If you need to replace one with the other in an existing patch, Paste Replace will often do.
That’s a great tip!
Forums > MaxMSP