This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of using the Cinema 4D Tree View GUI in Python. | |
import c4d | |
import os | |
import weakref | |
# Be sure to use a unique ID obtained from http://www.plugincafe.com/. | |
PLUGIN_ID = 9912399 | |
PLUGIN_NAME = "Python TreeView Example" | |
PLUGIN_HELP = "Show the current scene hierarchy in a tree." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ported from http://www.gizma.com/easing/ | |
# by http://th0ma5w.github.io | |
# | |
# untested :P | |
import math | |
linearTween = lambda t, b, c, d : c*t/d + b |