I’m fluent with AS3 and C# but have only started using Python as part of my learning Blender. I have been working on a little script that automates a few things for me, but i’m having trouble checking for if an object has a rigid body physics modifier applied to it.
I tried checking the object for bpy.context.object.rigid_body.enabled = True but that throws an error and stops the script even when put inside a try/except. Apparently the rigid_body.enabled flag only exists if a rigid body is applied to the object.
I searched the documentation but can’t seem to find a flag that i can check to see if a rigid body is applied.
I’m fairly new to Python so please feel free to assume I know nothing when assisting me.