How to initialize a Time object with expected seconds/ticks

Explorer ,
Jun 21, 2022 Jun 21, 2022

Copy link to clipboard

Copied

Hi,

 

So I want to run this addKey method, the method requires a time object, which can be initialized with

timeObject = new Time()

 

However, the timeObject above starts at the beginning of the clipitem (timeObject.seconds = 0). How can I create a time object that points to 3rd second of the clip?

 

Many thanks!

TOPICS
SDK

Views

32

Likes

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

correct answers 1 Correct answer

Adobe Employee , Jun 21, 2022 Jun 21, 2022
var myTime = new Time();
if (myTime){
     myTime.seconds = 3.0;
}

Likes

Translate

Translate
Adobe Employee ,
Jun 21, 2022 Jun 21, 2022

Copy link to clipboard

Copied

LATEST
var myTime = new Time();
if (myTime){
     myTime.seconds = 3.0;
}

Likes

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