Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
How can I get a list of modifiers for Blender in Python? I know about
bpy.types.SomeModifier(), but isn't there something to use to get a list of all of the possible modifiers?
- I know the list isn't too long to make by hand, but I really don't want to hardcode it if I don't have to.
Is this possible to list out with
asked Oct 16, 2016 at 20:27
8,30722 gold badges2828 silver badges7171 bronze badges
bpy.types.Modifier.bl_rna.properties['type'].enum_items contains a list of all modifier types.
To get a list of their Python identifiers you can do:
modifiers = 
for modifier in bpy.types.Modifier.bl_rna.properties['type'].enum_items:
Or, more Pythonically:
modifiers = [modifier.identifier for modifier in bpy.types.Modifier.bl_rna.properties['type'].enum_items]
answered Oct 16, 2016 at 21:03
Ray MairlotRay Mairlot
28.8k1111 gold badges103103 silver badges124124 bronze badges
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged