From a863bfffb158c96afd32a07fb6f83c781b5c0d5b Mon Sep 17 00:00:00 2001 From: paul szajner <szap> Date: Mon, 13 May 2019 11:27:11 +0200 Subject: [PATCH] Update 'Nuke Animation Format' to Blender 2.8 Differential Revision: https://developer.blender.org/D4844 --- io_anim_nuke_chan/__init__.py | 2 +- io_anim_nuke_chan/export_nuke_chan.py | 2 +- io_anim_nuke_chan/import_nuke_chan.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/io_anim_nuke_chan/__init__.py b/io_anim_nuke_chan/__init__.py index f562244ea..48da8b1d0 100644 --- a/io_anim_nuke_chan/__init__.py +++ b/io_anim_nuke_chan/__init__.py @@ -22,7 +22,7 @@ bl_info = { "name": "Nuke Animation Format (.chan)", "author": "Michael Krupa", "version": (1, 0), - "blender": (2, 61, 0), + "blender": (2, 80, 0), "location": "File > Import/Export > Nuke (.chan)", "description": "Import/Export object's animation with nuke", "warning": "", diff --git a/io_anim_nuke_chan/export_nuke_chan.py b/io_anim_nuke_chan/export_nuke_chan.py index 034ce6d94..d1c9a9b45 100644 --- a/io_anim_nuke_chan/export_nuke_chan.py +++ b/io_anim_nuke_chan/export_nuke_chan.py @@ -55,7 +55,7 @@ def save_chan(context, filepath, y_up, rot_ord): # if the setting is proper use the rotation matrix # to flip the Z and Y axis if y_up: - mat = rot_mat * mat + mat = rot_mat @ mat # create the first component of a new line, the frame number fw("%i\t" % frame) diff --git a/io_anim_nuke_chan/import_nuke_chan.py b/io_anim_nuke_chan/import_nuke_chan.py index c21265d0a..3f9793abc 100644 --- a/io_anim_nuke_chan/import_nuke_chan.py +++ b/io_anim_nuke_chan/import_nuke_chan.py @@ -72,12 +72,12 @@ def read_chan(context, filepath, z_up, rot_ord, sensor_width, sensor_height): mrot_mat.resize_4x4() # merge the rotation and translation - m_trans_mat = translation_mat * mrot_mat + m_trans_mat = translation_mat @ mrot_mat # correct the world space # (nuke's and blenders scene spaces are different) if z_up: - m_trans_mat = rot_mat * m_trans_mat + m_trans_mat = rot_mat @ m_trans_mat # break the matrix into a set of the coordinates trns = m_trans_mat.decompose() -- GitLab