I’d like to know how to set the pivot coordinates of multiple StaticMeshActors to the center of each BoundingBox at once.
I’m trying to set the pivot coordinates of all StaticMeshActors placed on the level to center. If there were only a few, I could simply go to Modeling Mode > XForm, select Edit Pivot, set it to center. However, there are so many actors to modify that doing this manually for each one isn’t practical.
When I select all the objects and execute Edit Pivot, it displays the coordinates of the center of the entire group (all objects) rather than the center of each individual BoundingBox.
Hi @PuLachsKasten Would you be able to provide some screenshots as well of what you are trying to do? In my head, if you want all the SM actors to pivot to the centre of all selected assets, you should just be able to select them all and make a group (CTRL + G) and then you would have a group you can move around. The thing that is throwing me is that you have said
"When I select all the objects and execute Edit Pivot, it displays the coordinates of the center of the entire group (all objects) rather than the center of each individual BoundingBox."
This make me think you have already tried the above option so i am wanting to know what do you mean the centre of each individual BoundingBox?
Ideally, I’d like to set the Pivot Point of all StaticMesh actors to the center of their respective meshes.
For individual StaticMesh actors, I can set the Pivot Point to the center by going to Modeling Mode > XForm and selecting “Center” in the “Edit Pivot” menu.
However, in the project I’m currently working on, there are over 10,000 StaticMesh actors, so this approach isn’t practical.
If I select all the objects and set “Center” in “Edit Pivot,” the PivotPoints end up being set to the center of the entire group. This is the problem I’m currently struggling with.
You can use an Editor Utility Blueprint/Python script to loop through all selected StaticMeshActors and set each pivot to its own BoundingBox center. The default Edit Pivot tool calculates the center of the whole selection, so it won’t work for individual actors. A batch script is the practical solution.