Yes, you can change a meshes origin using FitMesh.
Basically with FitMesh, you're defining a cube in which the mesh should fit. The x,y,z parameters define where one (any) of this cube's corners should be, relative to the meshes origin. Then, the width,height,depth parameters define the vector (directions) to the opposite corner of the cube.
For example, FitMesh mesh,-1,-1,-1,2,2,2 will make your mesh fit a bounding box of 2x2x2, with origin in the centre.
However, if you do FitMesh mesh,-2,-2,-2,2,2,2 then the mesh will again fit a bounding box of 2x2x2, but the origin will be in one of the corners of the bounding box.
You can even use FitMesh to place the origin outside of the mesh completely, if you so wish.
Well, I think that's right - been a while since I've used FitMesh, tbh. :)
Basically with FitMesh, you're defining a cube in which the mesh should fit. The x,y,z parameters define where one (any) of this cube's corners should be, relative to the meshes origin. Then, the width,height,depth parameters define the vector (directions) to the opposite corner of the cube.
For example, FitMesh mesh,-1,-1,-1,2,2,2 will make your mesh fit a bounding box of 2x2x2, with origin in the centre.
However, if you do FitMesh mesh,-2,-2,-2,2,2,2 then the mesh will again fit a bounding box of 2x2x2, but the origin will be in one of the corners of the bounding box.
You can even use FitMesh to place the origin outside of the mesh completely, if you so wish.
Well, I think that's right - been a while since I've used FitMesh, tbh. :)