Monday, July 22, 2019

Script Update to 4.2

I've updated the script, enough that it's now version 4.2.

The 3 major changes:

  • When using single jiggle the script will now use a better displacement map. The expressions have been updated for all modes, but there's an extra mask that gets added when in single jiggle mode. The change effects the Heftiness slider.
  • New Tool: Duplicate Frame Removal.
  • New Tool: Extra Bounce.

The first is just an update to the masks and expressions that control some of the movement added by the Jiggle portion of the script. It only has an effect on the displacement map, which is mainly control by the Heftiness slider. Also, because it uses a circle, it could really only be used in single jiggle mode. Dual center mode still works, it just uses the older version of the displacement map masks.

Duplicate Frame Removal

The new tools show up under the tools tab! One is for removing duplicates frames that appear in a pattern, the other is for adding extra movement to a tracked point.

If you've ever worked with a video file from Gfycat, you may have noticed that there are duplicate frames. It depends on what file was originally uploaded, but Gfycat seems to only have a handful of frame rates it likes. So if you upload a file in 48fps it will encode it in 59.94fps with every fourth frame duplicated. I'm not sure if this is Gfycat or whatever tool people use to modify/upload the videos in. What the new tool does is ask you how often the pattern repeats and how many of those frames are duplicates:

The red frames would get dropped. The tool will then add an expression to the layer and drop a pattern of frames, in addition it will also change the composition's frame rate so the duration of your footage stays the same. In the time remapping expression there is a value right at the top that you may need to change. It starts at 0, but if you run this script and there are still duplicate frames, increase this value by 1 and see if the pattern matches then. Keep adding 1 until the duplicates are removed. This works on rounding, so it's possible the pattern may not match up on the first frame, which this little shift value adjusts the pattern's position.

Extra Bounce

This may turn into something more later. Here's the basic idea: What if you have a casual jiggle, but you want more jiggle?
That's basically what this does. If in After Effects you use a motion tracker to track let's say a nipple, then use this tool, you'll get a null layer that is effectively your track but with more bounce. You can then use that with a CC Smear effect to basically make more jiggle! It's actually pretty nice, I was surprised. It has 2 controls: How far back it needs to look and a shift control.

The "How far back it goes" is measured in frames and it's basically how many frames should be considered when guessing where the jiggle starts. A higher value of how far back it goes creates a much sloppier/smoother jiggle. A lower value creates a very tight/smaller extra jiggle.
The shift value is if you want it to look into the future, so a value of 1 represents looking a single frame ahead. 0 is the default. This is designed to add extra bounce, not pre-emptive bounce, but I guess you could do that if you wanted to.

One downside right now is this does not work well if the camera is moving a lot, it can handle a little but not too much.

No comments:

Post a Comment