Closed animate1978 closed 5 years ago
Can you upload the BVH file that creates this error somewhere, so that people can recreate this error?
I am just using BVH files from here - https://github.com/blaisefaint/CMU-Mo-Cap-Pose-Library
The huge rig in the world happens when MB-Lab aborts the bvh import, the steps bvh takes are
Currently its it failing at 'Scene' object has no attribute 'update' But that s not the end of the story, mb-labs seems to be missing bones and complaining about that so this fail is actually while its trying to roll back the import attempt. looking around there is an API update to scene, which became view_layer So that s why you are seeing the Goliath bvh, that s what normally happens when importing bvh files
??? scene.update -bpy.context.scene.update() +bpy.context.view_layer.update()
(taken from here ) Mixamo files turned into BVH import just fine.
I am going to try to see if i can find the occurrences of where scene.update is used in the MB-Lab code
The repo you are pointing to only has blender files?
The files he is working with (which are imported wrong imho) are originally found here
From that zip I will try to import 07_05.bvh
Working with the original files I cant replicate your error
Figured out we have to zip files to share, this is 07_05.bvh
Also just found this out, which I think relates to this bug as well.
https://github.com/CGCookie/blender-addon-updater/issues/53#issuecomment-496014075
In this comment it is mentioned that Blender has replaced the scene update handler with other options, like dependency graph refreshes or explicit timers, so since this breaks at bpy.context.scene.update() this makes sense.
Problem is I don't know what to do to fix this
HA!!!!!!!!!
I fixed it!
Went to that link https://blenderartists.org/t/2-80-cheat-sheet-for-updating-add-ons/1148974
Replaced bpy.context.scene.update() with bpy.context.view_layer.update()
Committing the code now
Describe the bug
When loading a BVH animation into MB-Lab it causes an error AND creates a new HUGE rig in the world.
To Reproduce Steps to reproduce the behavior:
Create a new FINALIZED character Load BVH animation
Expected behavior
The above NOT to happen
Screenshots
Additional context Add any other context about the problem here.
Logs