Skip to content

Conditional join() based on node name #1571

Answered by donmccurdy
jbrialon asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! At present I think the way to do this would be to remove the names from any meshes you consider 'candidates' for merging (keeping names on those you want to animate) and then run join with the 'keepNamed' option enabled. Full options at:

https://gltf-transform.dev/modules/functions/interfaces/JoinOptions

Alternatively you can join exactly the primitives you want, with joinPrimitives:

https://gltf-transform.dev/modules/functions/functions/joinPrimitives

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jbrialon
Comment options

Answer selected by jbrialon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants