2

Is there a way to bind a surface deform mod without running

bpy.ops.object.surfacedeform_bind(modifier="Surface Deform")

and is there way to apply it without running

bpy.ops.object.modifier_apply(apply_as='DATA', modifier="Surface Deform")

The obj.to_mesh() method described here, does not seem to work for Surface Deforms.

Thanks, I'd appreciate any pointers.

p2or
  • 15,860
  • 10
  • 83
  • 143
MACHIN3
  • 797
  • 7
  • 18
  • 3
    Can you elaborate on obj.to_mesh() method "not seeming to work" – batFINGER Jun 11 '18 at 12:20
  • @batFINGER It tutned out I had to do a scene.update() before apply the mod, as the surface deform was added by code via modifiers.new(). Still looking for a way to do the bind without the bpy.ops – MACHIN3 Jun 16 '18 at 09:39

1 Answers1

0

It turned out I had to do a scene.update() before applying the modifier, as the surface deform modifier was added by code via modifiers.new().

I'm still looking for a way to do the bind without the bpy.ops* however.

p2or
  • 15,860
  • 10
  • 83
  • 143
MACHIN3
  • 797
  • 7
  • 18