Something along the lines of
t_object *desiredobject = jpatcher_get_namedobject("scriptedname");
and you could then just pass desiredobject into the various jbox goodies.
You can do something like that:
t_max_err err; t_object *patcher = NULL; t_object *yourobject = NULL; // get the patcher err = object_obex_lookup(yourobjectpointer, gensym("#P"), &patcher); // get the object that you're looking for. yourobject = (t_object *)object_method(patcher, gensym("getnamedbox"), gensym("theobjectname"));
Great! Thanks EJ.