[READ-ONLY] Mirror of https://github.com/probablykasper/ae-speed-to-value. Generate accumulating keyframes from a property in After Effects
after-effects extendscript script
0

Configure Feed

Select the types of activity you want to include in your feed.

Include original property name

authored by

Kasper and committed by
GitHub
(Feb 16, 2024, 12:29 AM +0100) af731958 e6c77141

+5 -2
+5 -2
speed-to-value.jsx
··· 36 36 if (typeof property.value !== 'number') { 37 37 return alert('Select a numeric property'); 38 38 } 39 + var propertyName = property.name; 40 + if (property.matchName === 'ADBE Slider Control-0001') { 41 + propertyName = property.parentProperty.name; 42 + } 39 43 40 44 var times = [comp.workAreaStart]; 41 45 var values = [0]; ··· 67 71 app.beginUndoGroup("Add Accumulated Property"); 68 72 var effectsProperty = layer.property('ADBE Effect Parade'); 69 73 var slider = effectsProperty.addProperty('ADBE Slider Control'); 70 - slider.name = "Accumulated Value"; 74 + slider.name = propertyName + " Accumulated"; 71 75 var sliderProperty = slider.property("ADBE Slider Control-0001"); 72 76 sliderProperty.setValuesAtTimes(times, values); 73 77 app.endUndoGroup(); 74 78 clearOutput(); 75 - // property.name 76 79 77 80 } 78 81 run();