project filename in the LOM
project filename in the LOM
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
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
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
I have the same question but for the Ableton Api..
Can't figure out how to get the opened document name.
Can't figure out how to get the opened document name.
-
- Posts: 6042
- Joined: Mon May 15, 2006 12:15 pm
Re: project filename in the LOM
Well you basically have the answer on Rivanni's post.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1
MacStudio M1Max 32Go OS 12.3.1
Re: project filename in the LOM
Yes i guess. but i've never used max for live for now so i don't really know what that means.chapelier fou wrote: ↑Mon Apr 29, 2024 9:51 amWell you basically have the answer on Rivanni's post.
Do you have the equivalent in python ?
Re: project filename in the LOM
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 ?
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
yes OK..
works only in live 12, been testing L11.
strange they didn't add this basic function until now.
works only in live 12, been testing L11.
strange they didn't add this basic function until now.
-
- Posts: 6042
- Joined: Mon May 15, 2006 12:15 pm
Re: project filename in the LOM
Hopefully they’ll add it to L11 !
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1
MacStudio M1Max 32Go OS 12.3.1