I like to write a javascript every now and then to avoid using a million objects in my Max/MSP/Jitter patches, and today was such a nice day for a little javascript…The script came out nice and tidy, but when I wrote another function to send the semantics to an ubumenu for easy navigation in the UI things became somewhat tedious… I’ll keep the receipt around here for anyone interested as there was very little concrete information about this in the documentation (Max/MSP) and even less on the user forums….
Anyway, this is reliable (remove the brackets):
[a=patcher.newobject("user", "ubumenu", 101, 99, 100, 196617, 0,1,1,0);]
The problem was nothing but the font and font size…. With the newdefault method they are messed up, but with newobject everything works out fine. I guess I was confused because the newdefault method creates the object, and allows filling it with content, and anything but the font related stuff…..
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.