# Datasmith not combining meshes from groups/components - Sketchup

**URL:** <https://forums.unrealengine.com/t/datasmith-not-combining-meshes-from-groups-components-sketchup/587803>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine, UE5-0, twinmotion, UE4\
**Created:** [June 22, 2022, 3:04pm UTC](https://forums.unrealengine.com/t/datasmith-not-combining-meshes-from-groups-components-sketchup/587803 "2022-06-22T15:04:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TeteusBR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TeteusBR](https://forums.unrealengine.com/u/TeteusBR)\
**Post date:** [June 22, 2022, 3:04pm UTC](https://forums.unrealengine.com/t/datasmith-not-combining-meshes-from-groups-components-sketchup/587803/1 "2022-06-22T15:04:57Z")

</div>

Datasmith is not combining meshes from groups/components, as specified in the documentation, thus leaving me with a HUGE number of meshes and slowing down tasks like importing, saving and baking lights.

The file in question gives 92K actors in Unreal 4-5. The same file gives me 27K actors when importing through Twinmotion.

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [June 23, 2022, 9:29am UTC](https://forums.unrealengine.com/t/datasmith-not-combining-meshes-from-groups-components-sketchup/587803/2 "2022-06-23T09:29:02Z")

</div>

Can you give a link towards “combining meshes from groups/components, as specified in the documentation” ?

The two things I would look at is:

- did you use instancing as much as possible
- you might need to use some dataprep recipe to merge elements on import base on rules

---

<div class="post-metadata">

**Author:** ![TeteusBR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TeteusBR](https://forums.unrealengine.com/u/TeteusBR)\
**Post date:** [June 23, 2022, 3:22pm UTC](https://forums.unrealengine.com/t/datasmith-not-combining-meshes-from-groups-components-sketchup/587803/3 "2022-06-23T15:22:35Z")

</div>

[Using Datasmith with SketchUp Pro | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/WorkingWithContent/Importing/Datasmith/SoftwareInteropGuides/SketchUp/)

As said, under “Converting Geometry into Static Meshes”:

“Datasmith divides your SketchUp geometry into Static Mesh assets by combining all connected polygon faces that are in the same component or group, into a single Static Mesh. Knowing this strategy can help you influence the Static Meshes it creates.”

I believe instancing is fine, as Twinmotion reads it correctly…

I could do Skp \> Twinmotion \> Unreal, but the problem is that Twinmotion messes UVs up, so it’s too much rework to fix it

" \* you might need to use some dataprep recipe to merge elements on import base on rules"

I’m not sure how to do that, would appreciate any help

Thanks

---

<div class="post-metadata">

**Author:** ![Antoine\_Guillo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/antoine_guillo/32/1225291_2.png) [@Antoine\_Guillo](https://forums.unrealengine.com/u/Antoine_Guillo)\
**Post date:** [July 4, 2022, 3:49pm UTC](https://forums.unrealengine.com/t/datasmith-not-combining-meshes-from-groups-components-sketchup/587803/4 "2022-07-04T15:49:13Z")

</div>

Hi TeteusBR !

Sketchup mesh exports can be a bit of a mess right now, but we are looking into improving this in a future release.

In the meantime, using Dataprep is a good solution.

Here’s our documentation page for Dataprep : [Dataprep Import Customization in Unreal Engine | Unreal Engine 5.0 Documentation](https://docs.unrealengine.com/5.0/en-US/WorkingWithContent/Importing/Dataprep/)

A simple recipe/logic would be to filter objects you want to merge together (usually by getting the name of the upmost parent, or filtering it with metadata/tags), then selecting the whole children actor hierarchy, then merging those objects together, as following :

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/d/6fd47db30b7136f51621c6933564d1bc91c47bf5.png)

Hope this helps !

Cheers,  
Antoine

---

<div class="post-metadata">

**Author:** ![TeteusBR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TeteusBR](https://forums.unrealengine.com/u/TeteusBR)\
**Post date:** [July 6, 2022, 1:54am UTC](https://forums.unrealengine.com/t/datasmith-not-combining-meshes-from-groups-components-sketchup/587803/5 "2022-07-06T01:54:47Z")

</div>

Hello, Antoine

Thanks for getting back to me

I’ll give it a look as soon as possible. Hope you guys can improve it soon

Keep up the good work,

Thanks.
