Yes, you can do that with Opus as well, e.g. with a previously preconfigured button.
This script can also help if you need a more in-depth approach (using other values, etc.).
What the OP is referring to is doing that automatically, just based on the file's location.