I am trying to read custom property data from a blend file using Python and Blender v4.1. In the model, custom properties (e.g. an Integer property called "ASSET_ID") was added in the Layout Workspace.

Custom property in Layout Workspace

I can access the object in Python using the bpy module using a command like:

o = bpy.data.objects["asset_1"]

The documentation says I should be able to find the property using a statement like:


but the key is not found. Does anyone know where the Layout Workspace properties are stored?

Note: the reason I'm asking specifically about the Layout Workspace trying to debug this problem I noticed that property set from Python showed up in the Modeling Workspace properties but not in the Layout Workspace:

bpy.data.objects["asset_1"]["FOO"] = 1

Modeling Workspace custom property


1 Answer 1


The problem doesn't have anything to do with workspaces, but rather the data block the custom properties are attached to. Pretty much every data block can have custom properties in Blender. In your case you're looking at a material data block custom properties. Notice the red circle icon with a checker board in the properties editor.

import bpy


# Or directly with material name

Custom property in Layout Workspace


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .