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
2f801f9c
Commit
2f801f9c
authored
Jun 26, 2020
by
Breno Rilho Lemos
💬
Browse files
Reference to Stefan Rossegger
parent
007e6c0b
Changes
1
Show whitespace changes
Inline
Side-by-side
animate/scene_functions.py
View file @
2f801f9c
...
...
@@ -142,6 +142,10 @@ def importALICE_detailed_TPC(transp_par,blender_path):
createMaterial
(
"tpc_part_4"
,
R
=
0
,
G
=
1
,
B
=
1
,
shadows
=
False
,
cast_shadows
=
False
,
transparency
=
True
,
alpha
=
transp_par
*
0.2
,
emit
=
0.3
,
specular_alpha
=
0
,
fresnel_factor
=
5
,
fresnel
=
0.3
)
# Import detailed TPC
#
# File was provided by CERN's researcher Stefan Rossegger
# Email: stefan.rossegger@gmail.com
#
for
i
in
range
(
1
,
5
):
bpy
.
ops
.
wm
.
append
(
filename
=
"tpc_part"
+
str
(
i
),
directory
=
blender_path
+
"/Detailed_TPC.blend/Object/"
)
bpy
.
context
.
scene
.
objects
.
active
=
bpy
.
data
.
objects
[
"tpc_part"
+
str
(
i
)]
...
...
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