Blender 2.8 changes for Mhx2
Posted: Wed Sep 05, 2018 5:49 pm
I have been evaluating changes for other things for Blender 2.8. I have started to make known changes, and thought I would pass one on which will even keep add-onsfrom loading. That is a utility for registering sub-classes of Blender objects has been removed, see https://en.blender.org/index.php/Dev:2.8/Source/Python/UpdatingScripts. This is in __init__.py of the main directory.
I have already changed this in community plugins. I am still working on an interface with a kinect2 sensor so it cannot be commited, but the code for this is:
There is also a requirement to set the Blender minimum version to 2.8. These are just to get the thing to load. My other add-ons die rather early when actually running. The community stuff came out almost unscathed. I am just guessing something like make walk is going to need TLC. Quaternion & matrix multiplication seem to be done differently.
I have already changed this in community plugins. I am still working on an interface with a kinect2 sensor so it cannot be commited, but the code for this is:
- Code: Select all
classes = (
Community_Panel,
MeshSyncOperator,
PoseSyncOperator,
ExpressionTransOperator,
AmputateFingers,
AmputateFace,
SnapOnIkRig,
RemoveIkRig,
SnapOnFingerRig,
RemoveFingerRig,
ToKinect2,
StartKinectRecording,
StopKinectRecording,
KinectAssignment,
KinectRefresh,
PoseRight,
ActionTrimLeft,
ActionTrimRight,
ActionSmoothing,
Animation_items
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
There is also a requirement to set the Blender minimum version to 2.8. These are just to get the thing to load. My other add-ons die rather early when actually running. The community stuff came out almost unscathed. I am just guessing something like make walk is going to need TLC. Quaternion & matrix multiplication seem to be done differently.