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

So there is no way to insert 2 audio clips separated by less then 1 frame distance? Scripting

Engaged ,
Dec 17, 2023 Dec 17, 2023

Copy link to clipboard

Copied

 

Bed30321077z973_2-1702833304158.png

 

Bed30321077z973_3-1702833316837.png

Let's say I want to separate 2 clips by 10 mili seconds,

And if we have :

- 1000 ms -> 30 frames

- 10 ms -> x ?

=> x = 0.3 frame,

I tried with extendscript and I tried with the mouse, I wasnt able to get move a clip between the "frames",

This means there is no difference between a 2 distances of 1 and 33,33 mili seconds I suppose?

1) This means I MUST separate my clips of at least 0.033 s to avoid having clips Overlaping? Otherwise one clip could for example:

- end at 10 sec + 33 ms, and the other

- starts at 10 sec + 2 ms

=> Both will start/end at either 10sec+0 frame or 10 sec +1 frame

If they start/end at frame 0 then clip 2 will start even if clip 1 hasnt ended yet

if they start at frame 1, then clip 2 will start late.

First scenario happened to me too many times To believe the lesser frame is always taken in account when doing this:

targetATrack.insertClip(someItem, someTime);

if someTime (IN SECONDS) correspond to the times I gave earlier (10sec + 2 or 33 ms) then the result will be 10 sec + 0 frame = 10 sec. instead of 10 sec + 1 frame = 10.03333334 seconds. Right? In any case both will overlap and cauze problems if you dont use "overwriteClip" I believe.

 

 

2) Is there any way to get more "distance" in the clip tracks?

3) In any case, lets say I have 2 clips and I want 0 DISTANCE between both of them, how do I automate adding one after the other with an extendscript code?

Some FOR loop that takes a collection of clips and add them one after the other without caring about the timing? I will make its own post for this quesiton because this post is getting more andmore complicated.

TOPICS
SDK , User interface or workspaces

Views

85

Translate

Translate

Report

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
Adobe Employee ,
Dec 17, 2023 Dec 17, 2023

Copy link to clipboard

Copied

1 : You can use the sequence's frame rate to compute the duration of a frame in Ticks.
2 : Sorry, I don't understand what you're asking. Distance, in what sense?

3 : Answered in your other thread; inserting a trackItem moves the CTI to the end of the new trackItem.

Votes

Translate

Translate

Report

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
Engaged ,
Dec 17, 2023 Dec 17, 2023

Copy link to clipboard

Copied

LATEST

"This means I MUST separate my clips of at least 0.033 s to avoid having clips Overlaping?" ->You can use the sequence's frame rate to compute the duration of a frame in Ticks.

But even if I computed it in frames or any other metric, I am unable to insert a clip in between frames is that correct? Look:

Bed30321077z973_0-1702840462222.png

 

Meaning , all clips must be separated of at least 33 ms (and its corresponding value in Ticks) right?

I mean even manually, you cannot move a clip in between 2 frames, the clip either in the frame before or the one after.

(In this example the clip will either be 00:00:00:05 or 00:00:00:06 you cannot put it between them = aka: you cannot insert a clip less than 34 seconds after the previous one, am I wrong? otherwise they will overlap, correct?

Edit: All the blue/red arrow and stars are areas where you CANNOT add a clip.

2) I meant, is there a way to obtain more "frames" or maybe keep the frames but allow the clips to be added in between the frames? I meant obtain more "space" in between the 2 seconds, instead of the limiting 30 points. (I suppose it is not possible because the video outputed is like 30 frames a sec.

3) Ok I will go check it out.

Votes

Translate

Translate

Report

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