Go to Memory Location Selection by Name erroring.
Title
Go to Memory Location Selection by Name erroring.
What do you expect to happen when you run the script/macro?
This is this script from here : https://forum.soundflow.org/-6565/deck-to-navigate-markers-that-has-names-displayed#post-13
I'm trying to got to a 'Selection' memory location. I've saved PT before running it and reset Soundlfow for good measure.
Are you seeing an error?
04.12.2022 13:02:12.94 [Backend]: !! Command Error: Go to by Name [user:clb2jrkxq0000m710vr74iikf:clb9u2fkx00014j10fokm27fp]: Object reference not set to an instance of an object. (Go to by Name: Line 4) System.NullReferenceException: Object reference not set to an instance of an object. at SoundFlow.ProjectSystem.Formats.Ptx.PtxSessionReader.ReadFileEntries() + 0x1a at SoundFlow.ProjectSystem.Formats.Ptx.PtxSessionReader.Read() + 0x6e at SoundFlow.Shortcuts.Ax.AxNodes.AxPtxSession.GetSession() + 0x73 at SoundFlow.Shortcuts.Automation.Actions.FetchMemoryLocationsFromPtxAction.Execute(FetchMemoryLocationsResult) + 0x5b at SoundFlow.Shortcuts.Automation.AutoAction`1.d__25.MoveNext() + 0x135
04.12.2022 13:02:12.94 [Backend]: << Command: Go to by Name [user:clb2jrkxq0000m710vr74iikf:clb9u2fkx00014j10fokm27fp]
What happens when you run this script?
Just the Error...
How were you running this script?
Keyboard trigger.How important is this issue to you?
5
Details
{ "inputExpected": "This is this script from here : https://forum.soundflow.org/-6565/deck-to-navigate-markers-that-has-names-displayed#post-13\n\nI'm trying to got to a 'Selection' memory location. I've saved PT before running it and reset Soundlfow for good measure.", "inputIsError": true, "inputError": "04.12.2022 13:02:12.94 [Backend]: !! Command Error: Go to by Name [user:clb2jrkxq0000m710vr74iikf:clb9u2fkx00014j10fokm27fp]:\nObject reference not set to an instance of an object. (Go to by Name: Line 4)\n System.NullReferenceException: Object reference not set to an instance of an object.\n at SoundFlow.ProjectSystem.Formats.Ptx.PtxSessionReader.ReadFileEntries() + 0x1a\n at SoundFlow.ProjectSystem.Formats.Ptx.PtxSessionReader.Read() + 0x6e\n at SoundFlow.Shortcuts.Ax.AxNodes.AxPtxSession.GetSession() + 0x73\n at SoundFlow.Shortcuts.Automation.Actions.FetchMemoryLocationsFromPtxAction.Execute(FetchMemoryLocationsResult) + 0x5b\n at SoundFlow.Shortcuts.Automation.AutoAction`1.d__25.MoveNext() + 0x135\n\n\n04.12.2022 13:02:12.94 [Backend]: << Command: Go to by Name [user:clb2jrkxq0000m710vr74iikf:clb9u2fkx00014j10fokm27fp]\n", "inputWhatHappens": "Errors out here is the error log :\n\n04.12.2022 13:02:12.94 [Backend]: !! Command Error: Go to by Name [user:clb2jrkxq0000m710vr74iikf:clb9u2fkx00014j10fokm27fp]:\nObject reference not set to an instance of an object. (Go to by Name: Line 4)\n System.NullReferenceException: Object reference not set to an instance of an object.\n at SoundFlow.ProjectSystem.Formats.Ptx.PtxSessionReader.ReadFileEntries() + 0x1a\n at SoundFlow.ProjectSystem.Formats.Ptx.PtxSessionReader.Read() + 0x6e\n at SoundFlow.Shortcuts.Ax.AxNodes.AxPtxSession.GetSession() + 0x73\n at SoundFlow.Shortcuts.Automation.Actions.FetchMemoryLocationsFromPtxAction.Execute(FetchMemoryLocationsResult) + 0x5b\n at SoundFlow.Shortcuts.Automation.AutoAction`1.d__25.MoveNext() + 0x135\n\n\n04.12.2022 13:02:12.94 [Backend]: << Command: Go to by Name [user:clb2jrkxq0000m710vr74iikf:clb9u2fkx00014j10fokm27fp]\n", "inputImportance": 5, "inputTitle": "Go to Memory Location Selection by Name erroring." }
Source
/** @param {string} memLocationName */
function goToLocationName(memLocationName) {
const findMemLocationName = sf.proTools.memoryLocationsFetchFromPtx().collection["list"].filter(m =>
m.name.includes(memLocationName))[0];
if (findMemLocationName) {
sf.ui.proTools.memoryLocationsGoto({
memoryLocationNumber: findMemLocationName.number
});
}
}
sf.ui.proTools.appActivate();
sf.ui.proTools.invalidate()
goToLocationName("rr")
Links
User UID: di7dN0keyHdE1HAif7Qi47Oz53E2
Feedback Key: sffeedback:di7dN0keyHdE1HAif7Qi47Oz53E2:-NITxPUQHTT9I-zKLHdh