Attributes in 4.63 (not in contextual menu)

Dec 23, 2009 at 10:54am

Attributes in 4.63 (not in contextual menu)

Hi,

I’m trying to get a object working with attributes that will work in both Max 4.63 and Max5. So far, I have this working up to a point but I have a couple of queries:

1 – In Max4 the attributes do not show up in the contextual menu – I get only the messages to the object – they do show up for other (jitter) objects. Is there a way I can get them to show up here? It’s not a show-stopper but it would be nice.

2 – It’d be cool if I could make the attributes saveable in Max5 – can I only way to do this using the Max5 API? I’m trying not to break out into two lots of code, so ideally i’d be able to compile against only one SDK and then run in 4 and 5 from the same .mxo – is this possible if I want to implement saving attributes in Max5.

Many Thanks

Alex

#47381
Dec 23, 2009 at 3:28pm

Hi Alex,

For the first question, it sounds like you simply need to add a message binding in your main() function for ‘quickref’. Here is a link to an old version of the code for jcom.map (from Jamoma) which uses the Max4-compatible attribute API:

http://github.com/tap/JamomaModular/blob/e34c2d1e606ceb2ef6a4f90cca8cbdd30812c246/SourceCode/MaxObjects/jcom.map/jcom.map.cpp

For attributes to be automatically saved with the patcher, yes, you have to use calls that are new as of Max 5.

best,
Tim

#170516
Dec 24, 2009 at 9:54am

Hi Tim,

Thanks for that – vey helpful – will implement quickref (makes sense now – saw it in the docs but didn’t know what it meant) and decide whether to bite the bullet on a separate Max5 compile. I have a trick for packaging max 4 and 5 .mxos together into a single wrapper .mxo but it’s a bit of unnecessary bloat and hassle that I hoped to avoid….

BTW – are email updates from the forum now totally dead does anyone know?

Thanks

A.
A.

#170517
Jan 4, 2010 at 12:10pm

This is a bit convoluted, but you could add a topic to your favorites (link at the top of this page) and then use the url for the RSS feed of your favorites to give an RSS-to-email service like http://www.feedmyinbox.com/. Not sure how well that work, but it could be helpful…

Cheers

#170518

You must be logged in to reply to this topic.