Title
UI track rename not working. I would like all the code to be UI as opposed to SDK if possible because I have different version protools rigs that I use.
What do you expect to happen when you run the script/macro?
open a dialog to rename a part of the file name.
Are you seeing an error?
Could not open track name dialog
What happens when you run this script?
Track becomes soloed. Nothing happens
How were you running this script?
I used a keyboard shortcut within the target app
How important is this issue to you?
4
Details
{ "inputExpected": "open a dialog to rename a part of the file name. \n", "inputIsError": true, "inputError": "Could not open track name dialog", "inputWhatHappens": "Track becomes soloed. Nothing happens", "inputHowRun": { "key": "-Mpfwh4RkPLb2LPwjePT", "title": "I used a keyboard shortcut within the target app" }, "inputImportance": 4, "inputTitle": "UI track rename not working. I would like all the code to be UI as opposed to SDK if possible because I have different version protools rigs that I use. " }
Source
//Get the name of the currently selected track (takes only the first if multiple are selected)
//SP1510_VO01_01
var existingTrackName = sf.ui.proTools.selectedTrackNames[0];
//Deconstruct the track name by splitting by "_"
var [episode, vo, take] = existingTrackName.split('_');
//Change the "scene"
take = prompt ('Take?', take)
//Reconstruct the new track name
var newTrackName = [episode, vo, take].join('_');
//Perform the rename
sf.ui.proTools.selectedTrack.trackRename({
newName: newTrackName,
});
Links
User UID: I9AOR3jEL9VjwNf96jcsUdz8omi1
Feedback Key: sffeedback:I9AOR3jEL9VjwNf96jcsUdz8omi1:-NtMUeWhPwUXH6vloErY
Feedback ZIP: usFLXYTswppItShzWZgxLtnz7Dxn5SkOo+Y1IK48R/Mz33WWr46LovUUIjaVu/fJMNpTDz20RjcQD4ehRi2LTgzmbU1SDi+iV4gNE67LiGpQFL5RlOezeSbgg9WKjxK0Vlr28HyyB3cKNH9F8qLDMBW/NmV2qfHo4uRuQRQY26F2d3j7Un3bM1CIdo+tZBfFLQzPn2jjkdvEJPFL/KMz2x/A3U3XLk3bkVQ77K2hKpfRUBxYgnVCLXHlR+JaW3tTd2GNnQ8ZUIXAxboaqs+jbu9DiCthWilttGO/v4AirayiW787NfqNRSDdzn4FFMCJ/NT1r2y9tFNkhvkmzlY/JGOf6bA6UkdtvF9EKl/b+fA=
- Christian Scheuer @chrscheuer2024-03-20 04:42:30.714Z
To somebody else reading this - this is solved in 5.7.4 :)