Page 1 of 1

project filename in the LOM

Posted: Sun Mar 17, 2024 9:35 pm
by ekg-music
Hey everyone,
does anyone know how to get the actual file name of the loaded set?

There used to be a path in the LOM:

Live.Song.file_path

but it does not work anymore.
I tried to get the current project BrowserItem and then the Project name, but also no luck...

Any ideas?
Cheers,
S

Re: project filename in the LOM

Posted: Tue Mar 19, 2024 5:40 pm
by Rivanni

Code: Select all

<pre><code>
----------begin_max5_patcher----------
946.3ocyWssiaBCD8YxWAhmoQ1fu.8CouTUEQHdScKwf.mzssp+60dL2bVxl
rZQU8gDjmY7L9L273euIHZe8yhtnvOF94vffeuIH.HYIDzuNH5TwykUEcfXQ
JwOp2+snXGKs3YMPtoUpzgc0piCrjG.FFg+PBmMPUc9jTUIzfxv8D6z+rR.R
2dQMHYSgt7qR0wcshRs6DlSS2hhCoXj8CiX+OIYKJ7KSZu9rdP8HKw+rYi8u
32G7pjWDaMLrGkkvGeQ7kzSrrtpt0AAz1bVFKgSnn7LTZdR7CRBOCluQ+EgC
e3n63uFBGNR5e1HbpIJZxxEWDG14bD6Jz5V49yZWBTvnGMHZWinsS1oEpRPG
XfNDJdqAjShtthihWDQNJzgOIqD6L39qKDSv7jWMlrj6BmAtK2Gd16vcsx.U
UbRrTdGg9lwXBjKjxghGF9eKFuQ0kNbeX0R3iwWm9FYb.zoPEPJ6NfN4Vfde
gs81ZGfsIvg1FL65DK2cA+pQ4G1Kvb.m.exP+WD5gFq2nDNgmtNg+dfm4x4u
GvSuIvi6+44..sXvg556QgShktuWoq9ba4fJGqhCmNMGDcZopPKqUykxdGiU
pE88Opsfth+irET8FheHageu1Z3DeGawVCbYSKuOtXqhOzV6+.3J0SpSxCM0
l4w5SHy4zsTSJOKaaFCQ3XhYxBBhQRieEdqRz+tm7qx8qaOHZu8raqqwutXX
z33WTdWzzbwNRia+fcMs29laptrXXoT4VxfkshKxA4Q.khVSiIsoqz4VWWqm
YjH2VqMFVcV1aaCh2z2c6pVJvb.dM7LP6ohyUZeGRQYoPo8F6LgmQRwo7DJI
GAiXZFqDSmFyzRhNH.Nmg3Y9Sct+nmBwubn0GgjuFMSvUMp04SPZto00aOgk
ukx4bbJkQH4bVFMdPly55isEGjFrBt4snAV9POd1eyreuX3GTtjQji4zTFfN
Li1iSBIMM6ps0zV2T2Nj0Y83ibziVkhH4TbrKDkvvy1tdzjT3MAzIdCWKEM5
.5Gwd3IGUBS91J7tCzr3km9nTOQsRxboM84YvY1WcWE+EGjZ6U0WkYkhnYYI
ozjbhwUCN5GgjmlqDmV+JfmpU5gRPSOjOIZOTnJh732I+UOe77sVUW9cyKmV
ej1YfZoMEyOXO5xA.Z0RlmRffCYZMgitRw1Qz7zIHzjR.c9x.Nct6ydCyh5b
mTY6mJViGEuYJu2bAQqIrOMXXeSxSlNjxgqUF5oCylZCmcMEtaOfQX27mM+E
s5K0NC
-----------end_max5_patcher-----------
</code></pre>

Re: project filename in the LOM

Posted: Mon Apr 29, 2024 7:55 am
by dr_kant
I have the same question but for the Ableton Api..
Can't figure out how to get the opened document name.

Re: project filename in the LOM

Posted: Mon Apr 29, 2024 9:51 am
by chapelier fou
Well you basically have the answer on Rivanni's post.

Re: project filename in the LOM

Posted: Mon Apr 29, 2024 10:05 am
by dr_kant
chapelier fou wrote:
Mon Apr 29, 2024 9:51 am
Well you basically have the answer on Rivanni's post.
Yes i guess. but i've never used max for live for now so i don't really know what that means.
Do you have the equivalent in python ?

Re: project filename in the LOM

Posted: Mon Apr 29, 2024 10:21 am
by dr_kant
Trying for the first time, i copied the data in a new M4L Audio fx and ran it.

The output is:

2024-04-29T12:19:01.720128: info: Python: ERROR:_MxDCore.MxDCore:720 - Error: 'Song' object has no attribute 'name'
2024-04-29T12:19:01.720249: error: Message from Max: live.object: 'Song' object has no attribute 'name'
2024-04-29T12:19:01.720342: info: Python: ERROR:_MxDCore.MxDCore:720 - Error: 'Song' object has no attribute 'file_path'
2024-04-29T12:19:01.720366: error: Message from Max: live.object: 'Song' object has no attribute 'file_path'

So it's the same problems i have in python, Song class has no attribute 'name' and 'file_path'

Did i miss something for it to work ?

Re: project filename in the LOM

Posted: Mon Apr 29, 2024 10:37 am
by dr_kant
yes OK..

works only in live 12, been testing L11.

strange they didn't add this basic function until now.

Re: project filename in the LOM

Posted: Mon Apr 29, 2024 11:12 am
by chapelier fou
Hopefully they’ll add it to L11 !