Hey all,
this is my first try with audio visualization and I’d be really interested in tips and suggestions to make it better:
For the bars I created a little script and for the bass circles I used a driver.
rows = 4
for i in range(0, rows):
bpy.ops.mesh.primitive_cube_add(location = (i*2, 0, 1))
bpy.context.scene.cursor_location = bpy.context.active_object.location
bpy.context.scene.cursor_location.z -= 1
bpy.ops.object.origin_set(type='ORIGIN_CURSOR')
bpy.context.object.data.materials.append(bpy.data.materials[2])
bpy.context.active_object.scale.x = 1
bpy.context.active_object.scale.y = 1
bpy.context.active_object.scale.z = 5
bpy.ops.object.transform_apply(scale=True)
bpy.ops.anim.keyframe_insert_menu(type='Scaling')
bpy.context.active_object.animation_data.action.fcurves[0].lock = True
bpy.context.active_object.animation_data.action.fcurves[1].lock = True
bpy.context.area.type = 'GRAPH_EDITOR'
step = 20000 / rows
bpy.ops.graph.sound_bake(filepath="/Users/Florina/Videos/Videos/03 - zaz.wav", low=i*step, high=i*step + step)
bpy.context.active_object.animation_data.action.fcurves[2].lock = True
Kind regards,
Florina