How to Geometry Select By Face Groups in script?

I want to make a script to auto select Face Groups(by bone name), but I'm not sure how to do that in script, is it possible to select the Face Groups in script?

Attach images is how I do manually in Daz.

This pain me for month, any help would be appreciated crying.

1.jpg
1364 x 926 - 393K
2.jpg
1364 x 926 - 292K
3.jpg
1364 x 926 - 351K
4.jpg
1364 x 926 - 294K

Comments

  • CES3DCES3D Posts: 80

    For example, this is the script for selecting the "head" Face Group of Genesis 9.

    var oNode = Scene.findNode( "Genesis9" );var oMesh = oNode.getObject().getCurrentShape().getGeometry();var oFaceGroup = oMesh.findFaceGroup( "head" );oMesh.deselectAllFacets();oMesh.selectFacets( oFaceGroup );
Sign In or Register to comment.