Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get path of patcher #63

Open
shakfu opened this issue Oct 25, 2023 · 0 comments
Open

Cannot get path of patcher #63

shakfu opened this issue Oct 25, 2023 · 0 comments

Comments

@shakfu
Copy link

shakfu commented Oct 25, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant