|
I try to get the total frames in transport control.
As some topic shows it can be down as this:
to get current time you can use FBSystem().LocalTime
to set current time you can use FBPlayerControl().Goto(<FBTime time>)
to get frame of the FBTime variable - frame = time.GetFrame(True)
to set frame for the FBTime variable - time.Set(0,0,0,frame)
SoI try to use:
FBPropertyTime starttime = FBPlayerControl().ZoomWindowStart;
FBPropertyTime stoptime = FBPlayerControl().ZoomWindowStop;
But FBPropertyTime don’t have functon GetFrame()
so how can i transform FBPropertyTime to FBTime
or any other way to get the total frames to render in transpaort control.
|
|
|
|
Have you tried just casting it to a Time?
i.e.
frame = FBTime(FBPropertyTime).GetFrame();
|
|
|