delete hair bone via script ?

How does it delete and add bones using a script? I've tried several related functions, but none of them worked.
I also tried using Scene.removeNode(someBoneInHairNode)
, but Daz3D crashed and closed itself.
I need a script example for removing a target bone and adding a bone to the target.
Post edited by huntergeen on
Comments
To delete a bone, you could select the bone and trigger the
DzJEDeleteBoneAction
action. It takes care of all the details like removing linked weight maps.or, MikeD has a script, Delete Selected Bones, which might be helpful (I have not looked at it to be sure).
Someone has posted an example for adding a DzBone in the thread Add bones to a figure via script
Thanks