Comments

xcxz-a wrote on 5/26/2022, 10:21 AM

@jetdv Cool, can it use the duration between two keyframes instead of the length of event?

jetdv wrote on 5/26/2022, 10:28 AM

I'd rather use a selection area on the timeline but, yes, it could go between two keyframes. One issue is that I'm moving it initially to a new location so that would no longer be able to happen. And if the ending position does not match that last keyframe, do you overwrite the last keyframe or let it jump to that location? And, in my tests, I'm actually removing all keyframes before I start. So... a lot more questions! 😁

xcxz-a wrote on 5/26/2022, 10:48 AM

@jetdv The advantage of putting it between two keyframes is that it complements Vegas's built-in smoothness types, which is the most convenient. 😺

jetdv wrote on 5/26/2022, 10:58 AM

@xcxz-a The first keyframe really isn't an issue. The last one is as the ending position (after the bouncing) may not be the same position as that last calculated keyframe.

Naturally, the first keyframe can be used as a starting point. The last keyframe could be in a totally different location to the ending of generated keyframes unless we overwrite that ending position too.

As far as the "smoothness" settings, are you really going to see a difference over 1 frame? The script is putting a new keyframe on EVERY frame? I can see wanting to adjust the first and last keyframe potentially but would it matter if those two were generated keyframes or originally placed keyframes?

We need to come up with the actual end goal of what you're trying to achieve here. We've done a bouncing ball which is cool but not very useful. We've done a bouncing in "transition" which could be useful. What we now need to do is make this useful. Perhaps if I saw a desired "end result" of what you're wanting to achieve it would help me better understand where we hare headed here.

xcxz-a wrote on 5/26/2022, 11:23 AM

@jetdv Can the last keyframe be the same as the end point of the function by using the transformation rules of the function image? 😺

y=f(x)±a; y=f(x±a); y=f(-x); y=-f(x); y=-f(-x); y=f(a*x); y=f(x÷a);

jetdv wrote on 5/26/2022, 12:03 PM

@xcxz-a, as we don't know where the last keyframe will end up, it makes more sense for it to end up where it ends up instead of trying to force it to a different location.

Back to the original question - what's the "end goal" here. We've done some "proofs of concept" but we still have no "end goal". I thought my second video would, somewhat, be what you were looking for as an "end goal" as it creates a bouncing transition. You can clearly see the video behind even during the bounces. I need to know the target we are looking to achieve here.

So can you give me a VEGAS timeline that would show how this "transition" is to be applied so I can understand what you have in your mind as to how this should work? At this point, I've shown you a transition working but it's obviously, not the transition you're looking for. So if you can show me what it is you're looking for then I would have a better target to understanding what you're trying to achieve with this.

xcxz-a wrote on 5/26/2022, 12:33 PM

@jetdv The goal is to reproduce Tweener's functionality or @Selina's easings by interpolating various curves between the two keyframes.

AS to specific role, it is very helpful to make some animation.

jetdv wrote on 5/26/2022, 1:01 PM

@xcxz-a If you want the functionality of Tweener, which is part of a script for VEGAS, why not just purchase Tweener? What's the point in reinventing the wheel?

If you're wanting a specific case that you do often, show me that specific case so I can understand what you're trying to accomplish. At this point, I feel like I'm swimming upstream with a blindfold on.

In the case of what I've done so far, you're not interpolating various curves between the two keyframes. It's simply adding a bunch of keyframes - one for every frame - so there is no time between the keyframe for interpolation. Your function is cool and creates a nice smooth bounce but there's no interpolation going on at all.

If you want, I'll do a tutorial on how I achieved the bouncing transition in and/or the bouncing ball (the second and third videos).

xcxz-a wrote on 5/26/2022, 1:31 PM

@xcxz-a If you want the functionality of Tweener, which is part of a script for VEGAS, why not just purchase Tweener? What's the point in reinventing the wheel?

@jetdv Tweener can't work on OFX keyframes, it can only work on limited places like pan/crop.

If you want, I'll do a tutorial on how I achieved the bouncing transition in and/or the bouncing ball (the second and third videos).

That would be cool!

jetdv wrote on 5/26/2022, 1:38 PM

@xcxz-a, create a dummy project showing what you are trying to do with the OFX keyframes. I need to see a concrete example to get my head around what you're wanting to accomplish. It might also be worth contacting Vegasaur to see if they might add OFX keyframes as an option - once again, it really depends on what you're trying to keyframe. So some concrete examples would be really helpful.

xcxz-a wrote on 5/26/2022, 3:07 PM

@jetdv Maybe the VEGAS Vignette FX can be a demo. 😎 Make a bouncy spotlight.

jetdv wrote on 5/26/2022, 3:31 PM

@xcxz-a Thanks. I'll look into that.

jetdv wrote on 5/28/2022, 9:40 AM

@xcxz-a, here's the next iteration:

xcxz-a wrote on 5/28/2022, 9:50 AM

@jetdv Crazy 👍 If these keyframe points could be generated between any two OFX keyframes, then its usefulness would be greatly increased! This can realize @Selina's dream! 👍 I believe there must be some way to transform the functions according to the value of the first & last keyframe, so that they match.

In addition, we can find more functions here besides Bounce. https://easings.net/

jetdv wrote on 5/28/2022, 9:54 AM

@xcxz-a and resizing

jetdv wrote on 5/28/2022, 9:55 AM

@xcxz-a, give me an example showing the "before" and "after" keyframes so I can get a better idea of how to properly handle the "from" and "to".

xcxz-a wrote on 5/28/2022, 11:18 AM

@jetdv Hi, I don't know how it can be converted in math. But I know it should be changed in sight like this :  

Can you do this mathematically in scripting?

jetdv wrote on 5/28/2022, 11:24 AM

@xcxz-a I'll worry about the math. I just want to see a concrete example. Also, if there's multiple keyframes, how will it know which ones to use?

I have some ideas but want to hear what you have in mind. Now that the prof of concept is done, I can see this becoming much more complex.

xcxz-a wrote on 5/28/2022, 11:37 AM

@jetdv

I'll worry about the math.

I'm terrible at math, and I don't know what operations to use to implement these transformations. 😕

Also, if there's multiple keyframes, how will it know which ones to use?

Maybe we could use the two keyframes before and after the playback header. I don't know if that is accessble in the Scripting API.

xcxz-a wrote on 5/29/2022, 4:33 AM

@jetdv Hi, I found some tutorials on graph transformations. Are these helpful? 😯

                 

jetdv wrote on 5/29/2022, 7:34 AM

@xcxz-a, I think your video from yesterday showed me what I wanted to see. What I was really looking for was a project (VEG) file with an event and an effect on it showing what you were wanting to use as the "beginning" and "ending" locations. I'll play some more.

xcxz-a wrote on 5/29/2022, 8:31 AM

@jetdv I'm glad that video is helpful! In fact, in addition to the two transformations that we did yesterday, there are two other transformations :

These two transformations are derived from yesterday's two rotations.

jetdv wrote on 5/30/2022, 9:16 AM

@xcxz-a, Ok, here's the next test

Here there are two keyframes set (beyond the initial keyframe). This test directly accesses keyframes "1" and "2" which are the second an third keyframes. The "default" 0 keyframe is set to center screen so between the first two keyframes it will move from center to the location toward the upper left.

After the script is run you can see the keyframes added between the two initial keyframes but none before or after those two keyframes and it moves from the first keyframed location to the second keyframed location.

xcxz-a wrote on 5/30/2022, 9:24 AM

@jetdv  This result looks very close to being practical! 👍👍 It can insert function curves in any two OFX keyframes, similar to what @Selina demonstrated.