Skip to content

Audio Baking Fails in Blender 5.0 – 'Action' object has no attribute 'fcurves' (Both Generated & Existing Geometry) #4

Description

@nonexistent3921-web

Description

In Blender 5.0, the Simple Audio Visualizer add-on throws an AttributeError: 'Action' object has no attribute 'fcurves' when attempting to bake audio.
This occurs in two situations:

When generating cubes through the add-on

When applying the add-on to existing geometry (manually created objects, imported objects, etc.)

Case 1 — When generating cubes
Python: Traceback (most recent call last):
File "...\simple_audio_visualizer_init_.py", line 252, in execute
create_and_bake_cube(O, i, height, L, h, intensity)
File "...\simple_audio_visualizer_init_.py", line 239, in create_and_bake_cube
bake_sound_to_channels(obj, context, path, lo, hi, intensity_multiplier)
File "...\simple_audio_visualizer_init_.py", line 34, in bake_sound_to_channels
fcurves = action.fcurves
AttributeError: 'Action' object has no attribute 'fcurves'

Image

Case 2 — When using existing geometry
Python: Traceback (most recent call last):
File "...\simple_audio_visualizer_init_.py", line 329, in execute
bake_sound_to_channels(
File "...\simple_audio_visualizer_init_.py", line 34, in bake_sound_to_channels
fcurves = action.fcurves
AttributeError: 'Action' object has no attribute 'fcurves'

Image

Steps to Reproduce

Case 1 — Generated Geometry
Install add-on in Blender 5.0
Load an audio file
Run “Generate Visualization”
Error occurs immediately

Case 2 — Existing Geometry
Create any mesh (e.g., Add → Cube)
Select it → run the add-on’s “Bake Audio” function
Error occurs before baking starts

Expected Behavior
The add-on should:
Create animation data when absent
Create a valid Action for the object if missing
Insert a keyframe before audio baking
Access F-curves only when they actually exist
Bake the audio and generate F-curves cleanly

Actual Behavior
In Blender 5.0:
obj.animation_data is often missing on existing meshes
sound_bake no longer creates or assigns Actions automatically
Actions returned by Blender may be empty or uninitialized
The add-on attempts to read action.fcurves before they exist
Both workflows crash with AttributeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions