I'm having trouble using
I get the error message
bpy.ops.ptcache.bake.poll() failed, context is incorrect no matter what I set the context to. I tried using
bpy.context.area.type="PROPERTIES" but I still get the same error.
How can I set the context in order to bake a cloth simulation in a script?