Merge models by maintain the color

I wanted to merge different nodes(models) together and also maintain the color of each structure and export it in .obj
I tried to merge the models by ‘merge models’ and even by ‘logical operators’ but the color of all structures become same.

Can anyone suggest me a solution.
My end aim is to convert it into .glb format may be in any other software.

Thanks for your help.

The reason the color became the same is that the models you merged became the same “poly data” data structure. One way to maintain the “colors” is to merge the models in a way that there is a scalar array in the data structure that labels each vertex. I don’t know about an easy way to do the merging together this way, without scripting. However, it seems to me that this extension could solve your problem: GitHub - PerkLab/SlicerOpenAnatomy: 3D Slicer extension for exporting Slicer scenes to use in the browser (install it and try the OpenAnatomyExport module)

1 Like