From: Alexander D. <ale...@go...> - 2012-11-17 15:26:55
|
Hi everyone, in a previous mail the ways of getting a ref of a fts objectto a c external were already named. - sending them in a message to your external - giving them as arguments (like $myfmat $yourfmat) of your external - obtaining them from the current "FTM scope" Now I'd like to know how one of these ways can be realised in detail. To give some background information:The patches where I would like to get the refs contain a static constellation of objects. All of these patches containa ref collector-object which collectsthe references of the objects needed. At the moment this ref collection is limited to standart max typeswhich I get through iteration in the patch identifying them by scripting name. This iteration isdone with a standart (non-ftm) max external but my xcode project is succesfully linked against theftm-sdk2.6 so if needed i could switch that. Since all required objects are in the same patcher maybe "FTM scope" sounds like a good option or would it be a lot easier to build the external as a ftm external and give them as arguments? In detail I need refs to fmats, mats and ftm.messages, ftm.editors. Can the last two also be obtained through iteration and scripting name or is it advisable to do itanother way? With ftm.message I only would like to be able to set the string/symbol.(like it can be done in max with #set xy) So the plan is to get the pointer and then send the "#set" message to the ftm.message object. Getting a pointer to an editor I hope it is possible to get, set values of attributes, namely: (choose view) interface, (view shape) shape. Can it be done like with standart max objectswith s.th like: object_attr_getvalueof, object_attr_setvalueof ? What is not essentially required but would come in handy would be to set the track refs in an editor from an external. Is that possible? Ok, that's a lot of questions. Maybe someone can put some light into this. Greetings, Alex |