Undocumented functions
Posted: 21 Jan 2012 16:38
It would be nice if we where able to create and destroy controllers from within MaxMSP. As is appears, there are some undocumented functions for the Lemur.
The function destroyobject(obj); deletes an object from the project layout. Also, the function createobject(p, q, r, s); appears to be syntactically right. But I can't get this to create a new object on the Lemur/iPad.
I wrote a little script to test this:
The output is:
The deletion works, but the creation of a new control fails. I suppose this function needs other arguments.
Does anyone know how to use createobject?
Are there other undocumented functions known to lemur users on this forum?
Cheers,
Xanadu
The function destroyobject(obj); deletes an object from the project layout. Also, the function createobject(p, q, r, s); appears to be syntactically right. But I can't get this to create a new object on the Lemur/iPad.
I wrote a little script to test this:
Code: Select all
oscout(0, '/Test_Undocumented_Functions', 'Start');
decl p = findobject('Text2');
oscout(0, '/before_destroyobject', {p});
destroyobject(p);
p = findobject('Text2');
oscout(0, '/after_destroyobject', {p});
decl obj = createobject('Fader', 'FaderX', {0, 0, 60, 200}, RGB(70, 70, 70));
oscout(0, '/Created_object', {obj});
decl q = findobject('FaderX');
oscout(0, '/Found_object', {q});
oscout(0, '/Test_Undocumented_Functions', 'Ready');
Code: Select all
LEMUR: /Test_Undocumented_Functions Start
LEMUR: /before_destroyobject 8828540
LEMUR: /after_destroyobject 0
LEMUR: /Created_object 0
LEMUR: /Found_object 0
LEMUR: /Test_Undocumented_Functions Ready
Does anyone know how to use createobject?
Are there other undocumented functions known to lemur users on this forum?
Cheers,
Xanadu