Page Menu
Home
Search
Configure Global Search
Log In
Files
F92012
torture-lib.py
Public
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Robert Forsman (mutantbob)
May 30 2014, 5:00 PM
Size
595 B
Subscribers
None
torture-lib.py
View Options
def
keyframeFor
(
t
,
idx
):
phase
=
t
%
3
bt
=
obj
.
keyframe_insert
(
data_path
=
"location"
,
index
=
idx
,
frame
=
t
*
10
)[
0
]
bt
.
handle_right_type
=
'FREE'
bt
.
handle_left_type
=
'FREE'
if
1
==
phase
:
bt
.
co
.
y
=
0.2
+
idx
*
2
# bt.handle_right =(bt.co.x+5, bt.co.y+1)
bt
.
interpolation
=
'BEZIER'
bt
.
handle_right
=
(
bt
.
co
.
x
+
2
,
0.5
+
idx
*
2
)
print
(
bt
.
handle_right
)
elif
2
==
phase
:
bt
.
co
.
y
=
1
+
idx
*
2
bt
.
interpolation
=
'LINEAR'
bt
.
handle_left
=
(
bt
.
co
.
x
-
2
,
bt
.
co
.
y
)
else
:
bt
.
co
.
y
=
idx
*
2
bt
.
interpolation
=
'CONSTANT'
File Metadata
Details
Mime Type
text/x-python
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
88/ef/837b80db56716b387d4dc291f337
Event Timeline
Log In to Comment