BoundingBox

vtool.maya_lib.space.BoundingBox(thing) Convenience for dealing with bounding boxes.
class BoundingBox(thing)

Convenience for dealing with bounding boxes.

Parameters:thing (str) – The name of a transform in maya. Bounding box info is automatically loaded from the transform.
get_center()

Get the center of the bounding box in a vector.

Returns:[0,0,0] vector
Return type:list
get_size()
get_ymax_center()

Get the top center of the bounding box in a vector.

Returns:[0,0,0] vector
Return type:list
get_ymin_center()

Get the btm center of the bounding box in a vector.

Returns:[0,0,0] vector
Return type:list