Page 1 of 1
Timeline for time follow bar?
Posted: Tue Dec 19, 2023 6:58 pm
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!
Re: Timeline for time follow bar?
Posted: Tue Dec 19, 2023 7:53 pm
by Alexey Kolesnikov
Hello!
What do you mean in "follow"? Could you provide an example?
Re: Timeline for time follow bar?
Posted: Tue Dec 19, 2023 8:42 pm
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
Re: Timeline for time follow bar?
Posted: Tue Dec 19, 2023 9:26 pm
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.
Re: Timeline for time follow bar?
Posted: Tue Dec 19, 2023 11:08 pm
by DJBrunoLima
Could that be Alexey?
Re: Timeline for time follow bar?
Posted: Wed Dec 20, 2023 3:45 am
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
Re: Timeline for time follow bar?
Posted: Wed Dec 20, 2023 6:06 am
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
Re: Timeline for time follow bar?
Posted: Wed Dec 20, 2023 6:26 pm
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?
Re: Timeline for time follow bar?
Posted: Wed Dec 20, 2023 7:18 pm
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.
Re: Timeline for time follow bar?
Posted: Thu Dec 21, 2023 12:20 am
by rickemail
worked perfectly, thank you