https://drive.google.com/file/d/193l7rjs2ZP__BVy8vlgP8Nc7OL6EQub2/view?usp=sharing
known limitations / current gotchyas
-
To blend animations you must use
object = bpy.data.objects[‘ObjectName’]
object.animation_data.action_influence = float -
Armatures skinning is slow
try using very low poly actors or bone parenting chunks (think GI joe joints) -
Random crashes for me when exiting the embedded player
use standalone* -
Object.worldTransform * Vector()
became
object.worldTransform @ Vector()
-
Using parented objects .worldPosition, .worldOrientation, .worldTransfrom all silently fail
you can use
child = parent.chidren['ChildName']
child.removeParent()
local = parent.worldOrientation.inverted() @ (child.worldPosition - parent.worldPosition)
child['local'] = local
#store local value
later you can use
parent.worldTransform @ local
to get a childs world position