Hello,
Here is a script that produces the bounding box of the input geometry.
The bounding box is output in the form of two points representing the minimum and maximum corners.
Geometry: the geometry you want to compute the bounding box of. It supports groups and placements.
Live update: If it is checked, it will constantly update the bounding box any time the input changes. This includes changes in material or textures because we don't have a way to distinguish between these changes and geometry changes at the script level.
If it is not checked, it will only update the bounding box when you click on the "play" button on the script.
Basically if the geometry is very heavy, uncheck it so it doesn't trigger the computation while you update materials.
Limitations:
- It only supports polygon-based geometry for now. No hairs, particles, volumes or vectron.
- It does not support scatter nodes.
The demo scene shows how to align a plane with the bottom of the bounding box.
The script itself should work in any decently recent version of Octane but the demo ORBX uses the new value math nodes from 2022.1.
Let me know of any issues or feedback.
Thanks