14 March 2011

Max/MSP Javascript "find object" - lazy dollar function

The second function in my "Making Max JS less crap" series, this function scans all objects in the patch and all subpatches and returns a reference to the object with the specified scripting name: It's basically a lazy man's version of my dollar function which means you dont need to give every patcher a scripting name. The downside is it (probably) runs a bit slower. Enjoy!

Please see right hand pane before copying my code>>

function _$(id){ //search through all max objects:
    this.patcher.applydeepif (_$act,_$scan);
    delete tempname
function _$act(obj){
function _$scan(obj){

_$("myButton").message('set','new text!') //find the first object anywhere in the project that has scripting name myButton and send it a message.


Unknown said...

ralph lauren outlet
true religion outlet
jordan shoes
coach outlet
ugg outlet
nike air force 1
canada goose sale
gucci handbags
nike shoes
kevin durant shoes

Unknown said...

polo ralph lauren outlet
air max 2018
cheap jordans
canada goose jackets
coach outlet store online
dsquared2 jeans
cheap jordan shoes
oakley sunglasses wholesale
michael kors outlet clearance
coach outlet store online

Anbarasan14 said...

Thanks for sharing this information with us. The content was helpful to many of the readers.
Spoken English Classes in Anna Nagar
Spoken English Classes in Porur
Spoken English Class in Kodambakkam
Spoken English Class in Adyar
Best Spoken English Classes in Chennai
IELTS Coaching Centre in Chennai
Spoken English Classes in Mumbai
English Speaking Course in Mumbai
IELTS Coaching in Mumbai
IELTS Mumbai

Tamil Typing said...

Looking for best Tamil typing tool online, make use of our Tamil Virtual keyboard online to type in Tamil on web browser and share it on your social media handle. Tamil Typing Software Download

Pradeep Appslure said...

We are amongst the Best Mobile App Development Company in Mumbai that offer IOS, Android Mobile Application Development services that look Great and act Smart.
Mobile app development company in mumbai

Pradeep Appslure said...

Mobile App Development Company Delhi: We have the Top iPhone Android app developers team, offering custom mobile app development Services in Delhi.
mobile app development company in delhi

Tekniko Global said...

mobile app development company in delhi

Susan said...

View stories of any user anonymously. Pictame2 pictame. The more Instagram followers a person has the more popular they will be on this site.

Rohan Singh said...

Nice blog, with very relevant information, get back to us for some inspiring content. We are also serving in the same domain delivering top-notch mobile app development solutions. For more details, visit top mobile app development company or contact us: +91-9717270746 or email us: sales@appsquadz.com

Technogeekscs said...

This is most informative and also this post most user-friendly and super navigation to all posts.
Data Science Course in Pune
Python Classes in Pune
AWS Training in Pune

Alexander Debrah said...

All access to ufabet direct website, not through agents Come to here, the only place in the world, the center for direct access to UFABET. All links, a complete approach to UEFA Bet Whether it is UFABET live casino online 1 day that you all gamblers have been using the service for a long time.

best quality of SEO Submission sites list said...

Blog Site Directories-- Helpforallseo Infographic Submission is constantly functioning to build high quality back links. Select an efficient directory and also choose a correct group. It takes rather some time to deliver great outcomes, yet these results stand apart over a longer period.

kinemaster Lite said...

thanks for sharing information with us.

Post a Comment

Cron Design Studio: Dublin based web design & software development