I’m having troubles with a little script I typed from informations I got around the net, I’d need to Bind 720 objects to a ‘cage’ using the Mesh Deform modifier.
Using the Copy attributes menu addon, I copied the Mesh Deform modifier from an object that was already binded to the ‘cage’ into all the objects, but they just got the modifier without being binded.
I’d like to select all the 720 objects that now have the Mesh Deform modifier, and bind all of them to the ‘cage’ with a script, instead of click bind for all the objects…
After searching around, I came up with this little code:
import bpy for obj in bpy.data.objects: bpy.ops.object.meshdeform_bind(modifier="mesh_deform")
but when I run it, I just get hundreds of ‘CANCELLED’ in the console …
can someone help me?
thanks in advance