Import FACS from FBX for BVH
Hi!
Doing extensive test on BVH which i think is simply become the #1 retarget addon on the internet.
A small bug i discovered, is if i import a file and my Scene format rate is 24 it will automatic change it to 30
and this crash will appear if i try change it back and do it again.
Blender 4.1
Thank you!
Comments (11)
-
repo owner -
repo owner - changed status to open
-
reporter Hi Thomas, please note that the frame rate of the Scene is always FORCED to change to 30 fps, even if initially it was 24 fps
Did multiple test so the crash will pop up only if the bone are not posable, when you make all bones posable then you import FBX to facs you won’t get the crash
tested with the last build.
Thank you!
-
reporter Actually not only the FACS but any FBX animation will force change my frame rate to 30 fps.. i believe it’s maybe a normal behavior then?
-
reporter also i noticed those quick facial movement:
seems like it “vibrate” probably the fps causing this.
-
repo owner The frame time is specified in the bvh file. E.g., in the Mixamo file you provided the bvh file contains the lines
MOTION Frames: 641 Frame Time: 0.033333
which indeed corresponds to 30 FPS. However, apparently keyframes still end up on integer frames. Will look into that.
The crash is hopefully gone now. Each button starts by going into object mode. However, if there is no active object, or if the active object is hidden or belongs to an excluded collection, that will cause a polling error. Hopefully fixed in all cases now.
-
reporter Hi Thomas
Crash is still there, importat G9 -) import standard morph -) BVH import facs from fbx
-
bvh 2.2.0027, blender 4.1.1
I can confirm the crash.
steps:
- easy import G9 with FACS
- select G9, then import facs from fbx file
Traceback (most recent call last):
File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\retarget_bvh\utils.py", line 433, in execute
self.sequel(context, data)
File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\retarget_bvh\utils.py", line 445, in sequel
bpy.ops.object.mode_set(mode=self.mode)
File "C:\Program Files\blender-4.1.1-windows-x64\4.1\scripts\modules\bpy\ops.py", line 109, in call
ret = _op_call(self.idname_py(), kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Operator bpy.ops.object.mode_set.poll() Context missing active objectp.s. @Bouich, as noted in the installation docs you have to rename the folders, so it’s “retarget_bvh“. Also I’m not sure that using the “admin“ user is a good thing.
-
repo owner But now the crash should be gone.
-
bvh 2.2.0030
The crash is gone now it imports fine. As for the “quick facial movoments“, they’re in the original file as well so they are imported correctly. We can clearly see them by importing the fbx with blender then parenting a camera to the head bone.
steps:
- import fbx with blender
- parent a camera to the head bone
- watch the face animation
If there’s nothing to add we can close as resolved.
-
reporter - changed status to resolved
no crash now works perfect.
- Log in to comment
This bug might already be fixed in 1586efc.