Found the remove bone script
function moveChildBone(parent, b)
local mtxLocalBone = IMatrix4x4(b.LocalMatrix);
local mtxLocalParent = IMatrix4x4(parent.LocalMatrix);
if (mtxLocalBone:isSet() and mtxLocalParent:isSet()) then
mtxLocalBone:SetMatrix(matrixLib.multiply(mtxLocalParent:GetMatrix(), mtxLocalBone:GetMatrix()));
parent:GetParent():MoveChild(b, IUserObject());
end
end
local sel = editChar:GetSelection();
if (sel:isSet()) then
editChar:BeginUndoGroup('Delete Bone But Not Children');
sel:foreach('bone', moveChildBone, false);
sel:RemoveSelf();
editChar:EndUndoGroup(true);
end
Dave
Windows 10 Pro 64 bit
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz