Skip to main content
Bed30321077z973
Inspiring
February 6, 2024
Question

Possible bug with InPoint and OuPoint functions combination

  • February 6, 2024
  • 1 reply
  • 572 views

Depending on wether the value of In is superior or inferior to the value of Out, you can have a bug or a feature.

The experiments I did were in ticks, I don't know if they are valid in seconds.

1) Experiment 1:

If the value of In is inferior to the value of Out, but the difference between them is inferior to One frame, the project item will be inserted with FULL DURATION (ignores all ins and outs, even if they were set to a specific values before), this actually resets the values of in and out it seems.

 

2) Experiment2:

If the value of In is superior to Out, without any focus on the difference between of the 2 (it can be whatever), the same happens, FULL Duration of items.

 

I consider experiment 1 to be a bug because it should round up to 1 frame in such case.

I consider experiment2 to be a feature because it informs you that you "reversed" the order of in and out.

This topic has been closed for replies.

1 reply

Bruce Bullis
Community Manager
Community Manager
February 6, 2024

ExtendScript that demonstrates Experiment 1, please? 

Bed30321077z973
Inspiring
February 6, 2024

Yes, inside a sequence that has 25 frames:

Item is an audio:

 

 

Item.setOutPoint("15000000000", 4);
Item.setInPoint("10200000000", 4);
$.writeln("outpoint: ");
$.writeln(Item.getOutPoint().seconds); // result full duration (in my case: 2.784 seconds)
$.writeln(Item.getOutPoint().ticks); // result: full duration of an audio (for my case: 707180544000)

 

 

Interestingly enough, if I try a very simple example like

 

 

Item.setOutPoint("1", 4);
Item.setInPoint("0", 4);

 

 

There is not problem it is rounded up to one frame,

But with the numbers I provided the problem appears (cf, result of the prints)

Strange isn't it?

Bruce Bullis
Community Manager
Community Manager
February 6, 2024

>Item is an audio

Do you mean that the projectItem behind this trackItem is audio only, or do you mean that this trackItem is from an audio track