Sample object bounding box to project UVs

Is it possible to query the local bounding box of the object to use as a sampler for UVs?
Here is an example of someone doing this technique in Unreal.
https://answers.unrealengine.com/questi ... d-uvw.html
Here is an example of someone doing this technique in Unreal.
https://answers.unrealengine.com/questi ... d-uvw.html