Skip to main content
added 32 characters in body
Source Link
pink vertex
  • 9.9k
  • 1
  • 26
  • 45

Try:

const.inverse_matrix = target.matrix_world.inverted()   
obj.update_tag({'OBJECT'})
bpy.context.scene.update()

This does not show up immediatly. You have to update the view / tag the region for redraw.

Try:

const.inverse_matrix = target.matrix_world.inverted()   
obj.update_tag({'OBJECT'})

This does not show up immediatly. You have to update the view.

Try:

const.inverse_matrix = target.matrix_world.inverted()   
obj.update_tag({'OBJECT'})
bpy.context.scene.update()

This does not show up immediatly. You have to update the view / tag the region for redraw.

added 155 characters in body
Source Link
pink vertex
  • 9.9k
  • 1
  • 26
  • 45

Try:

const.inverse_matrix = target.matrix_world.inverted()   
obj.update_tag({'OBJECT'})

This does not show up immediatly. You have to update the constraint somehowview.

scene = bpy.context.scene
scene.frame_set(scene.frame_current)

Try:

const.inverse_matrix = target.matrix_world.inverted()

This does not show up immediatly. You have to update the constraint somehow.

scene = bpy.context.scene
scene.frame_set(scene.frame_current)

Try:

const.inverse_matrix = target.matrix_world.inverted()   
obj.update_tag({'OBJECT'})

This does not show up immediatly. You have to update the view.

added 155 characters in body
Source Link
pink vertex
  • 9.9k
  • 1
  • 26
  • 45

Try:

const.inverse_matrix = target.matrix_world.inverted()

This does not show up immediatly. You have to update the constraint somehow.

scene = bpy.context.scene
scene.frame_set(scene.frame_current)

Try:

const.inverse_matrix = target.matrix_world.inverted()

Try:

const.inverse_matrix = target.matrix_world.inverted()

This does not show up immediatly. You have to update the constraint somehow.

scene = bpy.context.scene
scene.frame_set(scene.frame_current)
Source Link
pink vertex
  • 9.9k
  • 1
  • 26
  • 45
Loading