Cannot get path of patcher
shakfu opened this issue · 0 comments
shakfu commented
In the Max-api docs. There's a section in "Scripting the Patcher" which gives the following:
Patcher Name and File Path
To obtain the name of the patcher and its file path (if any), obtain attribute values as shown below.
t_symbol *name = object_attr_getsym(patcher, gensym("name"));
t_symbol *path = object_attr_getsym(patcher, gensym("filepath"));
These attributes may return NULL or empty symbols.
I am always getting no value from the "filepath" attribute even though I am able to get a value by sending the [thispatcher]
object a path
message.
Why give this example if this doesn't work?