You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why the two options are grayed-out, but here is the place where loading of frames happens for Timeline-based animation and where you should implement the playback logic you want.
You can adjust the speed of the clip e.g. by introducing a speedUpFactor property like in the example below (you could define a similarly named speedUpFactor property also on Record3DPlayback, which you could access from within R3DVideoBehaviour by calling input.endLocation.speedUpFactor; the speed-up factor property could be manually specified in the scene inspector).
Or instead of using speedUpFactor, you could directly compute the current frame index based on where in the Clip is the animation playhead currently located; the speedup would then be defined by how much you stretch the Clip in the Timeline:
varclipDuration=playableInput.GetDuration();// Duration of the clip in the TimelinevarcurrClipTime=playableInput.GetTime();// The time at which the playhead is located (relative to the start of the Clip)doublepercentageOfVideo=currClipTime/(clipDuration==0.0?1.0:clipDuration);intframeIdx=(int)Math.Round(percentageOfVideo*input.endLocation.numberOfFrames);
Hey,
I'm trying to set one of the Record3D clip from my scene in slow-motion via the timeline but the option is greyed out:
Do you have any alternative to set individual .r3d clips in slow-motion ?
Thanks a bunch,
Mathieu
The text was updated successfully, but these errors were encountered: