Timeline for time follow bar?

Blu-ray and UHD Authoring
Post Reply
DJBrunoLima
Posts: 65
Joined: Thu Sep 01, 2022 9:53 pm

Timeline for time follow bar?

Post by DJBrunoLima »

Hello Alexey!

Is it possible in a project with a timeline for time to follow the timeline bar like professional blu-rays in Java code or does BDS not have this feature?

Thank you in advance!

Alexey Kolesnikov
Posts: 475
Joined: Fri Mar 01, 2013 1:03 pm
Contact:

Re: Timeline for time follow bar?

Post by Alexey Kolesnikov »

Hello!

What do you mean in "follow"? Could you provide an example?
Best regards,
Alexey Kolesnikov

DJBrunoLima
Posts: 65
Joined: Thu Sep 01, 2022 9:53 pm

Re: Timeline for time follow bar?

Post by DJBrunoLima »

So Alexey, you can see this preview that a friend sent him a few days ago, but in this video he is advancing the film, you can see the time moving along with the timeline bar.
My question is, is this possible in BDS?
If it is possible, what java code is used to do this in a project please?

https://drive.google.com/file/d/1q9fe7B ... sp=sharing

Alexey Kolesnikov
Posts: 475
Joined: Fri Mar 01, 2013 1:03 pm
Contact:

Re: Timeline for time follow bar?

Post by Alexey Kolesnikov »

If you mean that the time moves together with the slider - of course you can do it the same way as timeline was done.
For example you can add

Code: Select all

[prop]: [Timer] move to (%time% * 1714 / %duration% + 100, 614)
in the https://blu-disc.net/download/examples/ ... Vi_full.7z example in all places where time line is updated.
Best regards,
Alexey Kolesnikov

DJBrunoLima
Posts: 65
Joined: Thu Sep 01, 2022 9:53 pm

Re: Timeline for time follow bar?

Post by DJBrunoLima »

Could that be Alexey?

Image

rickemail
Posts: 28
Joined: Fri Jun 25, 2021 9:33 pm

Re: Timeline for time follow bar?

Post by rickemail »

this is the correct configuration for your project bruno hehe

Taking advantage of the opportunity, how do I make the timer go backwards?

my video is 26 minutes long, I want the time to start at 00:26:00 and decrease until 00:00:00
Attachments
010250.png
010250.png (24.81 KiB) Viewed 20779 times
2023-12-20 004006.png
2023-12-20 004006.png (51.19 KiB) Viewed 20781 times

Alexey Kolesnikov
Posts: 475
Joined: Fri Mar 01, 2013 1:03 pm
Contact:

Re: Timeline for time follow bar?

Post by Alexey Kolesnikov »

DJBrunoLima wrote:
Tue Dec 19, 2023 11:08 pm
Could that be Alexey?
Not exactly. It should be:
X = %time% * 892 / %duration% + 519
Y = 666
Best regards,
Alexey Kolesnikov

DJBrunoLima
Posts: 65
Joined: Thu Sep 01, 2022 9:53 pm

Re: Timeline for time follow bar?

Post by DJBrunoLima »

Thank you Alexey and thank you Rick.

Alexey, I would also like to know if what Rick just asked you is possible in BDS?

Alexey Kolesnikov
Posts: 475
Joined: Fri Mar 01, 2013 1:03 pm
Contact:

Re: Timeline for time follow bar?

Post by Alexey Kolesnikov »

Oh, yep, I missed the question, thx.

I see only one way - using script.
First of all you need to convert "[prop]: [Timer] cur movie time" to the script:

Code: Select all

manager.setText("F:PM_Scenes_1.Timer", manager.time2str(manager.getMediaTime()));
As you can see it does 2 things:
1) Converts the current media time to the text: manager.time2str(manager.getMediaTime())
2) Changes the text value of the Timer object by setting it to what was converted in the p.1: manager.setText("F:PM_Scenes_1.Timer", ...);

So what you need here is to replace the current time with "duration - current time":

Code: Select all

manager.setText("F:PM_Scenes_1.Timer", manager.time2str(manager.duration - manager.getMediaTime()));
This is an example for DoVi Escape animation. In your case menu+object name will be different.
Best regards,
Alexey Kolesnikov

rickemail
Posts: 28
Joined: Fri Jun 25, 2021 9:33 pm

Re: Timeline for time follow bar?

Post by rickemail »

worked perfectly, thank you

Post Reply