Skip to content
/ KeyRed Public

Keyframe Reduction Tool for Animation Data.

License

Notifications You must be signed in to change notification settings

lloyar/KeyRed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeyRed

Language: English | 中文

Keyframe reduction is a python library written in C. The main function of the database is to obtain a small number of control points and to fit complex curves.

Quick Start

  1. Build:
$ git clone https://github.com/Realibox/KeyRed.git
$ cd KeyRed
$ python setup.py build
  1. Install the library
$ python setup.py install
  1. run test script: $ python test_simplify.py.

Example

Usage:

import animation
from math import *

data = []
n = 512
error = 0.05
for t in [x * 2 * pi / n for x in range(n + 1)]:
    data.append((t, sin(t)))

out = animation.simplify(data, error)

for i in list(range(len(out))):
    print(out[i])

About

Keyframe Reduction Tool for Animation Data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published