few thoughts about the clumsy pattr object
I am learning about preset management objects in MAX and I am maybe missing something, but are the wires going from [pattr] object really bidirectional?
I thought that we have data flowing from outlets to inlets and I find the way the [pattr] object works really confusing + it also makes it quite useless in some cases. For example, when building some GUI my own way (not using the basic GUI objects, but LCD object + some logic around it, it’s sometimes a different place (inlet) where I want to recall value and different place (outlet) from where i want the values to be stored.
Seems to me, that having [pattr-in
what do you think?
For clarity (pattr object as an alias) you may use the @bindto attribute instead of wire connection.
You can also use pattr’s inlet and first outlet to set and get the value.
But beware of feedback loops, because pattr will immediately output the value it receives.
I would use bindto or better yet, use [autopattr] if you only need to store it in the GUI object. Then you can simply set by scripting name from [pattrforward].
Interestingly, [pattr] has a check against stack overflow, which was interesting to learn:
----------begin_max5_patcher---------- 590.3oc0VtsaiCBDF9Z6mBDWsqT1JicbbRuaeNVsJBanozZCQ.IMcq569xI6 DuIt4Pai1dQLZFHy7OeLf8KwQvRwFpBBtE7KPTzKwQQNWVGQA6HXCdSUMV4V FrRzzP4Z3H+bZ5Fs2eMq5QfV.TTMPikKLCeSUyHT42aWLeUiXktlpcgJI38N AWqX+gZ8gRuo08Rrt5dFewbIsR6UX1jYloAnvPdhcH07D76sYfwaS.J3jQbJ TT9vOPYvcxJG23xJ7mRFtFZm303X6iQmHMZnJEdAcOZnnbBvW8Gt3a0l2k94 kTeIBgc0x4ykY41gfwzgvR5AvB5iEKl7UNTkmNTkyrcU.XIlu33PPRMHVi0L AeWPjT3AwX6PR3QWvND558OtfNpYuA45Rqz3WSkyobbYsaEIWBUoOYx3d8Zl pRKuSHeBKIWilMOwRScMaE4mMwl9UqWaeFfRm35ZFmdgcMEWutl92BsFK6R2 679og4RJJqkHVHcNfI6y8Pytkeyyy6Sf9mn.6MeeBkMHgFE98NZr7GqlN67e A2warLWcpExfZKx5BsBulRlaBhQMysDfUtR6+3fnN39FaL9cl18GWXg0L9+9 4Etp15u+llRrRV0hv12IA1V3DipYb2E96rno8Vy8LBgx28aKHLkUijg6dNU4 L6+J0jcBpo3HpogQVJLWDF1ePItCsY4t2DFrPodqr7axCVay5GV0TbBUC5pw ValPGQMYWU0j7IoF+YT7xkqoRUHjNgXtB8AgzZNYjyjw8ltHZtAYMqc8iisQ 603+B7bGbKG -----------end_max5_patcher-----------
Forums > MaxMSP