Python, how to add sockets and virtual bones to skeleton

Been digging through the Python API for a way to add sockets and virtual bones to skeletons without any luck. Anyone know how to do this?

I’ve been looking for the same thing. So far adding sockets seems fairly straight forward from the Python API documentation. unreal.SkeletalMesh — Unreal Python 4.27 (Experimental) documentation (
However to add a virtual bone you need an animation sequence, which doesn’t really make sense to me, as from the editor you can add VB’s without being specifying an anim sequence. To re-word this, I am also looking for some guidance as to how to add virtual bones using python.

add_virtual_bone documentation:
unreal.AnimationLibrary — Unreal Python 4.27 (Experimental) documentation (