PyAPI: update scripts for matrix multiply operator

Operators:
- add torus
- align objects
- bake physics
- make dupli faces
- smart project

Templates:
- 3D view ray cast

Other:
- Methods for bones/edit-bones
This commit is contained in:
2018-08-12 15:01:26 +10:00
parent 444a0202d4
commit 4b6fa4d897
9 changed files with 32 additions and 29 deletions

View File

@@ -300,7 +300,7 @@ class CLIP_OT_bundles_to_mesh(Operator):
reconstruction = tracking_object.reconstruction
framenr = scene.frame_current - clip.frame_start + 1
reconstructed_matrix = reconstruction.cameras.matrix_from_frame(framenr)
matrix = camera.matrix_world * reconstructed_matrix.inverted()
matrix = camera.matrix_world @ reconstructed_matrix.inverted()
for track in tracking_object.tracks:
if track.has_bundle and track.select:
@@ -580,10 +580,12 @@ class CLIP_OT_setup_tracking_scene(Operator):
scene.camera = camob
camob.matrix_local = (Matrix.Translation((7.481, -6.508, 5.344)) *
Matrix.Rotation(0.815, 4, 'Z') *
Matrix.Rotation(0.011, 4, 'Y') *
Matrix.Rotation(1.109, 4, 'X'))
camob.matrix_local = (
Matrix.Translation((7.481, -6.508, 5.344)) @
Matrix.Rotation(0.815, 4, 'Z') @
Matrix.Rotation(0.011, 4, 'Y') @
Matrix.Rotation(1.109, 4, 'X')
)
return camob