By Dav3 @D_av_3
Hello everybody.
I would need to create a script to delete all memory locations. But I can not. would you have any suggestions?
- Raphael Sepulveda @raphaelsepulveda2021-03-22 22:06:14.604Z
Hey Davide!
This bit of code will take care of that:
function deleteAllMemoryLocations() { sf.ui.proTools.memoryLocationsWindow.popupButtons.whoseTitle.is("Memory Locations").first.popupMenuSelect({ menuPath: ['Delete All'] }); } function main() { sf.ui.proTools.appActivateMainWindow(); sf.ui.proTools.memoryLocationsEnsureWindow({ action: deleteAllMemoryLocations, restoreWindowOpenState: true }); } main();
- LLuke Dunn Gielmuda @Luke_Dunn_Gielmuda
Do you know if this script could be modified to delete only markers thats name starts with "location "? so i can remove Location 27, location 68 etc in one go. ideally without it even needing to open the memory window. thanks
- OOwen Granich-Young @Owen_Granich_Young
However it does have to go 1 by 1
Raphael Sepulveda @raphaelsepulveda2023-02-16 21:11:00.145Z
@Luke_Dunn_Gielmuda, Owen's suggestion is the way to go.
Currently, we're still limited with working with the memory locations window and deleting them each at a time.
- In reply toOwen_Granich_Young⬆:LLuke Dunn Gielmuda @Luke_Dunn_Gielmuda
Works Great. thank you.