423
428
col.prop(part, "phase_factor_random", text="Random", slider=True)
425
430
if part.type != 'HAIR':
426
col = layout.column()
427
if part.use_dynamic_rotation:
428
col.label(text="Initial Angular Velocity:")
430
col.label(text="Angular Velocity:")
431
sub = col.row(align=True)
432
sub.prop(part, "angular_velocity_mode", text="")
433
subsub = sub.column()
434
subsub.active = part.angular_velocity_mode != 'NONE'
435
subsub.prop(part, "angular_velocity_factor", text="")
431
layout.label(text="Angular Velocity:")
433
split = layout.split()
434
col = split.column(align=True)
435
col.prop(part, "angular_velocity_mode", text="")
437
sub.active = part.angular_velocity_mode != 'NONE'
438
sub.prop(part, "angular_velocity_factor", text="")
441
col.prop(part, "use_dynamic_rotation")
438
444
class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
1178
1184
ob = context.object
1179
1185
psys = context.particle_system
1182
row.label(text="Vertex Group")
1183
row.label(text="Negate")
1186
row.prop_search(psys, "vertex_group_density", ob, "vertex_groups", text="Density")
1187
row.prop(psys, "invert_vertex_group_density", text="")
1187
split = layout.split(percentage=0.85)
1189
col = split.column()
1190
col.label(text="Vertex Group:")
1191
col.prop_search(psys, "vertex_group_density", ob, "vertex_groups", text="Density")
1192
col.prop_search(psys, "vertex_group_length", ob, "vertex_groups", text="Length")
1193
col.prop_search(psys, "vertex_group_clump", ob, "vertex_groups", text="Clump")
1194
col.prop_search(psys, "vertex_group_kink", ob, "vertex_groups", text="Kink")
1195
col.prop_search(psys, "vertex_group_roughness_1", ob, "vertex_groups", text="Roughness 1")
1196
col.prop_search(psys, "vertex_group_roughness_2", ob, "vertex_groups", text="Roughness 2")
1197
col.prop_search(psys, "vertex_group_roughness_end", ob, "vertex_groups", text="Roughness End")
1199
col = split.column()
1200
col.label(text="Negate:")
1201
col.alignment = 'RIGHT'
1202
col.prop(psys, "invert_vertex_group_density", text="")
1203
col.prop(psys, "invert_vertex_group_length", text="")
1204
col.prop(psys, "invert_vertex_group_clump", text="")
1205
col.prop(psys, "invert_vertex_group_kink", text="")
1206
col.prop(psys, "invert_vertex_group_roughness_1", text="")
1207
col.prop(psys, "invert_vertex_group_roughness_2", text="")
1208
col.prop(psys, "invert_vertex_group_roughness_end", text="")
1189
1210
# Commented out vertex groups don't work and are still waiting for better implementation
1190
1211
# row = layout.row()
1191
1212
# row.prop_search(psys, "vertex_group_velocity", ob, "vertex_groups", text="Velocity")
1192
1213
# row.prop(psys, "invert_vertex_group_velocity", text="")
1195
row.prop_search(psys, "vertex_group_length", ob, "vertex_groups", text="Length")
1196
row.prop(psys, "invert_vertex_group_length", text="")
1199
row.prop_search(psys, "vertex_group_clump", ob, "vertex_groups", text="Clump")
1200
row.prop(psys, "invert_vertex_group_clump", text="")
1203
row.prop_search(psys, "vertex_group_kink", ob, "vertex_groups", text="Kink")
1204
row.prop(psys, "invert_vertex_group_kink", text="")
1207
row.prop_search(psys, "vertex_group_roughness_1", ob, "vertex_groups", text="Roughness 1")
1208
row.prop(psys, "invert_vertex_group_roughness_1", text="")
1211
row.prop_search(psys, "vertex_group_roughness_2", ob, "vertex_groups", text="Roughness 2")
1212
row.prop(psys, "invert_vertex_group_roughness_2", text="")
1215
row.prop_search(psys, "vertex_group_roughness_end", ob, "vertex_groups", text="Roughness End")
1216
row.prop(psys, "invert_vertex_group_roughness_end", text="")
1218
1215
# row = layout.row()
1219
1216
# row.prop_search(psys, "vertex_group_size", ob, "vertex_groups", text="Size")
1220
1217
# row.prop(psys, "invert_vertex_group_size", text="")