2
$\begingroup$

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.

$\endgroup$
2
  • 3
    $\begingroup$ Can you elaborate on obj.to_mesh() method "not seeming to work" $\endgroup$
    – batFINGER
    Commented Jun 11, 2018 at 12:20
  • $\begingroup$ @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 $\endgroup$
    – MACHIN3
    Commented Jun 16, 2018 at 9:39

1 Answer 1

0
$\begingroup$

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.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .