Git Product home page Git Product logo

fcurve-cleaner's Introduction

FCurve-Cleaner

What does it do?

It tries to clean your dense animation graphs (like mocap graphs) like an animator would! So it will produce a usable artist friendly result while maintaining the original graph (leveraging the power of bezier curves).

Before And After

You are in control!

And the best part is that you have the control to specify how much detail you want to preserve from the original curve via tolerance sliders. The lower the tolerance, the more points from the original FCurve will be selected (more on this later).

different tolerances

For more control over precisions on different areas of the curve, you can manually select different ranges of keyframes to clean with different precisions. For example

How can I use it?

1- Install Dependency
The addon uses a function from scipy library which is not included in the blender's python by default. So you should install this library to use this addon. Steps for installation (only for the first time):

  1. Go to blender's installation folder and right click on blender.exe and choose run by administer.
  2. Install the addon
  3. click on install dependency (which will appear on addon's info) After clicking the install button, it should take a minute or two to install it. You can open the console window before hitting the install button to view the installation progress.

2- Select your fcurve (or check all fcurves option)
Unless you've checked the clean all of fcurves for action box, you should select the fcurve you want to clean. If the clean all of fcurves for action option is checked, it will clean all the fcurves for the active action.

3- select keyframes to clean
There are 3 methods to choose which frames to clean

  • Scene Frame Range
    • Uses the scene frame range.
  • Specified Frame Range
    • If you choose this method, two sliders will show up for you to choose your frame range.
  • Selected Keyframes
    • Basically uses the first and the last selected keyframe on selected fcurve to choose the frame range for cleaning. (should improve)

4- clean!
Find the clean fcurve panel in graph editor ... You are now ready to clean your graph. Just hit the Clean Fcurve button to begin the cleaning operation. If the number of chosen frames are high, it might take a while to clean them and Blender would freeze during that operation. So I suggest that before you hit the clean button, open up the console to see the cleaning progress.

How does it work?

It cleans the curve in 3 passes. First it selects the keyframes. Then it selects the inbetweens and the Final pass is for determining the locations of bezier control handles. For the first two passes, it uses the keyframe and inbetweens precision sliders respectively to detect changes and select points.

fcurve-cleaner's People

Contributors

myusernameue avatar wishful97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fcurve-cleaner's Issues

License

Hello,
very interesting project !
Can you add the license ?

If it uses Blender Python API the license should be GPL

https://www.blender.org/about/license/

I pay attention on correct licenses for the addon i use for Blender projects.
And plan to test it as soon as possible :)

Thank you !

not able to install

Hello thanks for this amazing addon..!!! I tried to install many times, but its not working, this is happening in system console. please guide if i do any wrong..thanks

addon_utils.disable: FCurve-Cleaner-main not disabled
Modules Installed (FCurve-Cleaner-main) from 'C:\Users\Pawan\Desktop\FCurve-Cleaner-main.zip' into 'C:\Users\Pawan\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons'
pip 20.2.3 from C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\site-packages\pip (python 3.9)
Collecting scipy
Downloading scipy-1.8.1-cp39-cp39-win_amd64.whl (36.9 MB)
|████████████████████████████████| 36.9 MB 6.8 MB/s
Requirement already satisfied: numpy<1.25.0,>=1.17.3 in c:\program files\blender foundation\blender 2.93\2.93\python\lib\site-packages (from scipy) (1.19.5)
Installing collected packages: scipy
Successfully installed scipy-1.8.1
WARNING: You are using pip version 20.2.3; however, version 22.1.2 is available.
You should consider upgrading via the 'C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\bin\python.EXE -m pip install --upgrade pip' command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.