Skip to content

Unable to get project name or filepath #84

Answered by helgoboss
eureka-cpu asked this question in Q&A
Discussion options

You must be logged in to vote

This returns None because the project is not loaded yet at the point when the extension is initialized, so there's indeed no file path.

Let me quickly adjust the official example extension to show how this would work.

Oh, and again: Please don't use the high-level API (except for the entry point macro). It has breaking changes very often and will eventually be removed. I won't give any support for it and should not have made it available here in the first place ;)

And for better understanding: The medium-level API is very close to the original REAPER C++ SDK. It intentionally doesn't add convenience! So what you currently struggle with is actually REAPER's SDK, not reaper-rs. In most case…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@eureka-cpu
Comment options

@helgoboss
Comment options

@eureka-cpu
Comment options

@helgoboss
Comment options

@eureka-cpu
Comment options

Answer selected by eureka-cpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants