live_app function : get_document
In MaxForLive api, I expected the function "call get_document" to the live_app object to return the title or file location of the live set. But the call only returns an id (id 3 in my case). The other functions of this object seem to work as described in the LOM, but I’m not sure how to use the return I get from the get_document call. (the LOM is very vague in its description of this function, it just says: "Returns: the current live set.")
Is there a way to get the currently loaded live set’s file location ?
I am trying to dynamically save a jitter matrix with a name that matches the live set’s name, and in the same folder.
thanks for your help…
wanted to bring this back from the dead as I’m having the same question and couldn’t find an answer between max help and searching the forum.
Mine on the other hand returns a string of number (id 2147418112), but that number stays consistent no matter what set I open…
This is how I have them patched together to get the same id from every set:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 383.3ocwT9sSCBCEF+Z3onoWiDJH6Odm9ZXVVJzJqFnkrVzoK6cW5AXyoCjM MyKnM86T54ie8bXqqCNQsgqwn6POhbb1553.RVAm10N3B5lzbpF1Ftfq0zLN 1qIlguw.5YbyRlJspfKMcAKolzUBY1x07TSSRhim4G3gHjfloXXZhe.ZQ6KI qJDxbtARWXqnfAIQk77MgQcG+SJoQRK3Pn6WKn4nGT4L7gCRUY5NIRqZij4s Rdigv38Y1ddZw6P.q+rp6bcsCdijNR9q0d7avwfRP4CQkY.NlBrIJzOtlIy5 iIjSvDxEwjv9XRBUlg8tNrIW7B2ulIqFrpIBHyb63jlJnyhOAWDeh5slwq84 ujO80YYYCxRokzxxAgTSyzTnT51ytwhL+enwB1ScMf7q+EB9.s5GSLspZcZW F5tZQj8ohw0FgjZDJ4m2Tc+A5.IVIXLNDOnUoPvJUBoo0DnEm79azdhLFOEc zltJdJXLd55wIaE2O6ofegmpWry8Cj.OW1M -----------end_max5_patcher-----------
The number (id 2147418112) denotes the application, but not the actual set.
Here is a patch demonstrating the difference.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 553.3ocuV1sbiBBEG+Z8ofgqylQ7Sxd21WiNcbPkMgNJ5HXa51ou6KfZR6tw HMs5MP77Q77+GvAe00AlUejJffeBtG337pqiiwj1fyvyNvJxw7RhvDFrhJDj 8T3ldeR5QowNq.3iBSBQXDxezKuqhwKoRSp9CF+cMWJX+gpsg715cN15N4Xv nAqMDY9AFeeZKMW1Wm9IHURp2lNW.NPOhh25AdXHm9+F4KMz9DfvStXElhsN 6wefRfuqf3jJSzve0xHkf6pKKfZuu45pG1XIcx5jxZ9EkO5ypSTRhVZQlQeu wwokYFgu+xREcKZgSeVk7+sP2pduTvdpLsnNuqhxkWUtVsZ6eEJf2YTdX+5r mgFH7UWt2LwRd7BrhOAkjfLP4hBFeTjAE9X8Tf+1n43hY+wTrIZAXyU5UDtn sHPw8sHvw5ovjasEg2JBkbRY47Gq91HjZCiAJlSW6v2Hgvq2IpR1SzsJkb.n +UJoo4qe7JX1tu6BOOZQWmoNcEtxbR4PqjEcGzPiYOyTzNKHzkHSvbjYvsf7 DsHsWWoDorkotqs+SWbNAHGXZCsUvDRJOuWYF6FxNxWSUnvD+e+vGiH01+Hz E0cs4iZXnUI.cRKETgjwIRl5d+ywn+5h2EzAVQA03ejyUrhlZFWNTCfGt3N. aKI0M7a.dyTSgeHlktjhsnhzMXWQJEXQIEupPJzhsRQqZEEYAivqdEMGiBV0 8QXKXTvWfQpGdy8uLDeIy. -----------end_max5_patcher-----------
Thanks again for the reply broc. I tried getting your patch to work but I think I might be getting the problem the OP had. I just get id 1 for every set.
The same id i mentioned before comes out of the right outlet of the trigger, and at the end of the chain i just get id 1. Any thoughts?
Note that you can get the set id also directly with [live.path live_set].
So you could try this to see if It’s the same for every set.
Forums > Max For Live