From 313dfcc97cc7d530002ab812cae6c3e0a6ae29f5 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Mon, 6 Sep 2021 16:18:42 -0700 Subject: [PATCH] PSA files now export actions with the frame-rate defined in the scene (previously defaulted to 30fps) --- io_export_psk_psa/psa/builder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io_export_psk_psa/psa/builder.py b/io_export_psk_psa/psa/builder.py index 699eeae..6c3c4b3 100644 --- a/io_export_psk_psa/psa/builder.py +++ b/io_export_psk_psa/psa/builder.py @@ -85,7 +85,7 @@ class PsaBuilder(object): sequence.name = bytes(action.name, encoding='utf-8') sequence.frame_count = frame_max - frame_min + 1 sequence.frame_start_index = frame_start_index - sequence.fps = 30 # TODO: fill in later with r + sequence.fps = context.scene.render.fps frame_count = frame_max - frame_min + 1 @@ -93,7 +93,6 @@ class PsaBuilder(object): context.scene.frame_set(frame) for bone in pose_bones: - # TODO: is the cast-to-matrix necessary? (guessing no) key = Psa.Key() pose_bone_matrix = bone.matrix