Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ALICE-open-data
ALICE Blender animation
Commits
5e6dcaa0
Commit
5e6dcaa0
authored
May 04, 2020
by
Breno Rilho Lemos
💬
Browse files
Fix animation track configuration
parent
0cbebdb2
Changes
1
Show whitespace changes
Inline
Side-by-side
animate/scene_functions.py
View file @
5e6dcaa0
...
...
@@ -323,7 +323,7 @@ def animate(objects, particles, driver):
bcs
=
bpy
.
context
.
scene
#Animate particles
for
f
in
range
(
1
,
bcs
.
frame_end
):
for
f
in
range
(
1
,
bcs
.
frame_end
+
1
):
t
=
driver
.
delta_t
*
f
bcs
.
frame_current
=
f
print
(
"Configuring particles in frame: "
+
str
(
f
)
+
" of "
+
str
(
bcs
.
frame_end
))
...
...
@@ -337,11 +337,11 @@ def animate_tracks(tracks, particles, driver):
bcs
=
bpy
.
context
.
scene
#Animate tracks
for
f
in
range
(
1
,
bcs
.
frame_end
):
for
f
in
range
(
1
,
bcs
.
frame_end
+
1
):
t
=
driver
.
delta_t
*
f
bcs
.
frame_current
=
f
print
(
"Configuring tracks in frame: "
+
str
(
f
)
+
" of "
+
str
(
bcs
.
frame_end
))
for
point
in
range
(
f
,
bcs
.
frame_end
):
for
point
in
range
(
f
,
bcs
.
frame_end
+
1
):
for
i
in
range
(
0
,
len
(
particles
)):
#bcs.objects.active=tracks[i]
tracks
[
i
].
data
.
splines
[
0
].
points
[
point
].
keyframe_insert
(
data_path
=
"co"
,
frame
=
f
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment