Skip to content

Commit d90fc3f

Browse files
committed
Blender: Tweak dissolve.py parameters
1 parent 8c3d90c commit d90fc3f

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

src/blender/scripts/dissolve.py

+4-17
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def createDissolveText(title, extrude, bevel_depth, spacemode, textsize, width,
109109
# Particle parameters
110110
PSSettings.count = NbQuads
111111
PSSettings.frame_start = 10
112-
PSSettings.frame_end = 60
113-
PSSettings.lifetime = 80
112+
PSSettings.frame_end = 30
113+
PSSettings.lifetime = 90
114114
ParticleSystem.point_cache.frame_step = 1
115115
PSSettings.normal_factor = 0.0
116116
# not useful
@@ -165,6 +165,7 @@ def createDissolveText(title, extrude, bevel_depth, spacemode, textsize, width,
165165

166166
TexSlot = PSSettings.texture_slots.add()
167167
TexSlot.texture = sTex
168+
TexSlot.texture_coords = 'OBJECT'
168169
TexSlot.use_map_time = True
169170

170171
deselect()
@@ -187,12 +188,8 @@ def createDissolveText(title, extrude, bevel_depth, spacemode, textsize, width,
187188
# hide plane for render
188189
Plane.hide_render = True
189190

190-
select(Text)
191-
192-
TexSlot.texture_coords = 'OBJECT'
193191
TexSlot.object = Plane
194-
TexSlot.use_map_time = True
195-
192+
select(Text)
196193
Text.data.update()
197194

198195
bpy.ops.object.modifier_add(type='EXPLODE')
@@ -201,16 +198,6 @@ def createDissolveText(title, extrude, bevel_depth, spacemode, textsize, width,
201198
Text.modifiers['Explode'].show_dead = False
202199
Text.data.update()
203200

204-
select(Text)
205-
206-
TexSlot.texture_coords = 'OBJECT'
207-
TexSlot.object = Plane
208-
209-
TexSlot.use_map_time = False
210-
TexSlot.use_map_time = True
211-
212-
Text.data.update()
213-
214201

215202
# Debug Info:
216203
# ./blender -b test.blend -P demo.py

0 commit comments

Comments
 (0)