object internal send/receive
in Pure Data it is possible to set the name of send/receive variables to each gui object, thus saving lots of time in connecting with extra objects. Is there such a feature in max?
I found the pattr object, but it doesn’t do the same, e.g. it doesn’t allow to link with several gui objects.
perhaps you can do it via thispatcher object (scripting) , first of all you need to give JS name (inside inspector) for each ui that u want to access
edit : then check help file for thispatcher how to access your objects
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 660.3oc0W1riaBCDG+bVo8cvhsGSQXSf.sm5KPk54tUqLvjDuBLHamrocUe2 q+HjR9RgpPhRuXiGO7Oi+4wCNu+3Ci7xpWCROzmPeGMZz6ZKir1LVF0ZXjWE ccdIUZczKutpB3JuwalTAqU1I788eiUVhDPNvVAnBpht0qY0bEmVAVO+hfQK 2NEeYEiWBJq73VqrBqq0Yu9Q7jt9VuT05bPW0kreYUGS72ZugpxWv3yeQGSJ 2xjDomFgSCscQAlNhtE8ishIlmYU2OvZ42O9foW2M9xgjZAHAjdUoCHIZAUy IYtf0nzQIx.Hj+yZXLSocVuXwOyEr4K1LhrUuRFGxqWxshNYPfb3fCYRTTGH GStYPtPPminFhkAhgIEjLfzIbSJ3UMCrBjR5b3P33R2PRfWXyoPLtB8A7+Ll HGCS3SfI7QwD1OJMBmLscR2Kn9YC3.km2eYxQ3HdZrgctVbnEj3DCHu5TCOn TK3VRMW12PBsA7bV5IHA4bGyN.BLSgAjWFkOuWYQSrsG6zXCUnWMJP7BvoYk vNG6ypEEfHutrV3jKvOMNXZxjw5mlDlRvw1mzVBwZReu.5jaOncId+Gx4UTw VLuyWgujMfo8YCXFMGNcgfjAI8WWOwrUPH18kD6fomce4JwV7fv136D1FFda QK7ld0er6bxj1nafpcLIZvJdX3XepZfc2VJN8vxFR8cn2n1Se0n2NKWj2mMM O8MSq9i2NKGTavIm8Z06+2grRYlXOzKqWJxa+kau7CpSfU.R8s5oJVMuiWF3 00qErhBfuSstBlzjLTblrgdGXo8It1O5uAwk4dO2k.KoW.K3hhqMYbzllUfP tQZWHoOU+p6ybwiciYb2XmxdBXEq8URzVrppa9Ct35ns -----------end_max5_patcher-----------
pvar could be usefull too…
yeah . pvar is even more appropriate here !
Thank you all, that was a good suggestion. But nevertheless an instance of pvar is always necessary before each receiver – in the end one saves one object by not using "send", but has to use a "receive"-like object. Also, max doesn’t allow me to have several objects with the same scripting name.
I’ll try it this way. But this gave me the thought of, instead of having too many variables around, to try to put all these variables in a central place in the patch, so that they’re easy to manage. Do you know any type of such a management system?
pattr still sounds good to me for the variable storage. If you post a representative slice of your patch, and people will be better able to advise you.
If you put objects in parameter mode (live.objects are already in parameter mode), you’ll be able to see them when you view the "Parameters" window. You can change their names there if you’re looking to rename things en masse. Drop an autopattr in and you have bidirectional communication; you can use pattrhub, pattr, and pattrforward to do that.
Alternatively, the sw object lets you link multiple controls with the same value without feedback problems, though it may not be what you’re looking for in this case.
Thanks for your replies. I don’t have a specific patch to show, it’s more of a general concept I was thinking of – on one side to try to save on sends/receives and patching time, and on the other hand to have a central place where all these variables are accessible; ideally with one object that automatically knows how many variables exist, and can go through them. But as it seems such an object doesn’t exist, so I’ll stick to the traditional method, and keep track of my variables, trying not to repeat any names.
you’ll probably prefer things like pattrstorage, autopattr etc. The Pd-style built-in option of send/receive for GUI objects has no real equivalent in Max, alas.
Forums > MaxMSP