I have a script, which works in version 2.90, in which I get a list of materials in the scene by accessing bpy.context.scene.material_slots and bpy.context.scene.materials. These don't seem to work in version 2.92. Did the location of the materials in the scene change and if so, how do I find them?
Asked
Active
Viewed 31 times
0
scene.material_slotsandscene.materialhave never existed by default. Related https://blender.stackexchange.com/questions/141179/how-to-populate-uilist-with-all-material-slot-in-scene-2-8/141207 – batFINGER Mar 20 '21 at 01:05bl_info(seeText Editor > Templates > Python > Addon) at the top of script, could install it as an addon (+add innards to theunregister()method)` – batFINGER Mar 20 '21 at 03:55