ScriptSpot

Forum topic · General Scripting

Fit Bounding Box. Is it possible to do this script?

By Nik · 2014-08-14

Description

Fit Bounding Box. Is it possible to do this script?

Comments (2)

Nik · 2014-08-18

Thanx i try it

.

miauu · 2014-08-15

If you have to do it only for Box objects:
- save the rotation and position of the object
- rotate the object so one of its size to match the world X axis, another side to match world Y axis and other side to match the world X axis. You know what I maen
- apply resetXform modifier.
- restore the rotation and position of the object. First restore the rotation, then the postion to avoid problems.