Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Make Time Stretch visible

Explorer ,
Feb 04, 2025 Feb 04, 2025

Who among us has not pulled their hairs out trying to determine why a shot is not playing back at regular speed, only to realize that the layer has been time-stretched? 

 

That's because you only see the time stretch properties within the Time Stretch dialogue box.

 

I would like a layer somehow labeled when it has been Time Stretched anything beyond 100%. Could be as simple as a marker (screenshot attached), or something akin to Premiere's "FX" badge that gets applied to any clip with an effect applied.

 

Thank you!

Idea No status
TOPICS
UI and UX
67
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 Comment
Participant ,
Feb 04, 2025 Feb 04, 2025
LATEST

Here you go, Make sure to test it enough before trusting the results
The first one works on all project comps, and the second works on project panel selected comps only.

 

 

function getStretch(layer) {
    var s = layer.stretch;
    if (s !== 100) {
        s = s.toFixed (1);
        // Create a new marker
        var marker = new MarkerValue("Stretch "+ s);
        // Add the marker at Layer in point
        layer.property("Marker").setValueAtTime(layer.inPoint, marker);
    }
}
app.beginUndoGroup("Label Time Stretched Layers");
for (var i = 1; i <= app.project.numItems; i++){
    if (app.project.item(i) instanceof CompItem){
        for (var j = 1; j <= app.project.item(i).numLayers; j++){
            var layer =  app.project.item(i).layer(j);
            getStretch(layer);
        }
    }
}
app.endUndoGroup();
function getStretch(layer) {
    var s = layer.stretch;
    if (s !== 100) {
        s = s.toFixed (1);
        // Create a new marker
        var marker = new MarkerValue("Stretch "+ s);
        // Add the marker at Layer in point
        layer.property("Marker").setValueAtTime(layer.inPoint, marker);
    }
}
//
app.beginUndoGroup("Label Time Stretched Layers");

var selectedItems = app.project.selection;
for (var i = 0; i < selectedItems.length; i++) {
    var comp = selectedItems[i];
    if (comp instanceof CompItem) {
        for (var j = 1; j <= comp.numLayers; j++){
            var layer =  comp.layer(j);
            getStretch(layer);
            }
        }
    }
app.endUndoGroup();
Translate
Report