kt-forpro-tools 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/slides.ts +6 -2
package/package.json
CHANGED
package/src/slides.ts
CHANGED
|
@@ -243,6 +243,7 @@ class KT_Slides {
|
|
|
243
243
|
this.inDuration * 2,
|
|
244
244
|
this.masterComp,
|
|
245
245
|
(index * this.slideMultiplier + i) * this.inDuration * 2,
|
|
246
|
+
i !== 0,
|
|
246
247
|
);
|
|
247
248
|
this.enableTimeRemap(layer as AVLayer);
|
|
248
249
|
layer.outPoint = this.masterComp.duration;
|
|
@@ -499,13 +500,16 @@ class KT_Slides {
|
|
|
499
500
|
duration: number,
|
|
500
501
|
comp: CompItem = app.project.activeItem as CompItem,
|
|
501
502
|
startTime?: number,
|
|
503
|
+
animate: boolean = true,
|
|
502
504
|
) {
|
|
503
505
|
const layer = comp.layers.add(source);
|
|
504
506
|
layer.startTime = 0;
|
|
505
507
|
layer.outPoint = duration;
|
|
506
508
|
this.fitLayerToComp(layer, comp);
|
|
507
|
-
|
|
508
|
-
|
|
509
|
+
if (animate) {
|
|
510
|
+
this.slideUp(layer);
|
|
511
|
+
this.disolveIn(layer);
|
|
512
|
+
}
|
|
509
513
|
layer.startTime = startTime || 0;
|
|
510
514
|
return layer;
|
|
511
515
|
}
|