Wrapping head scan onto body mesh

Hi all. I am trying to wrap a head scan onto one of our own body meshes using the SimpleWrapping.py script, but in the Non-Rigid Registration part, even when I select just the head part of the body mesh, the mesh still becomes deformed during the wrapping process. What are ways that I can isolate the wrapping part to just the head?

I have attached pictures as examples of what is happening when I go through the process.

Thank you :).

Hello! It works vise-versa, what you select in selection dialog is going to be free from wrapping. So just invert the selection. Selected polygons however will still try to fit the rest of the basemesh so you will still notice slight body movement. If you want to leave the body completely unchanged you can use
http://www.russian3dscanner.com/docs/WrapX/wrap.subset.html
and
http://www.russian3dscanner.com/docs/WrapX/wrap.applySubset.html
like so

select a head polygons
selection = wrap.selectPolygons(basemesh)

and detach it from the rest of the mesh

headmesh,vertexMapping = wrap.subset(basemesh,selection)

Then you do the wrapping routine and substitute head changes back to original basemesh

wrap.applySubset(basemesh,headmesh,vertexMapping)

Thank you for such a quick response! Inverting the selection did the trick ;D