Skip to content

Normalize skin weights possible? #667

Answered by donmccurdy
Olaf-Wolf3D asked this question in Q&A
Discussion options

You must be logged in to vote

Updating my previous answer for the latest release after #670

const limit = 4;

for (const mesh of document.getRoot().listMeshes()) {
  for (const prim of mesh.listPrimitives()) {
    sortPrimitiveWeights(prim, limit);
  }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by donmccurdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature New enhancement or request package:functions
2 participants