Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Bounding Box Display?

The-Digital-Shaman
Advocate

Bounding Box Display?

The-Digital-Shaman
Advocate
Advocate

Hi there,

 

In 3ds max bounding box is displayed by default.

Surprisingly to me, in Maya and on the internet I can't find much about BB display in Maya.

Someone made a custom script but didn't share, so I keep searching.

 

For sure bouncing box is used by some tools (i.e. pivot matching tools) to calculate whatever they need.

 

Did anyone come across a method to display a bounding box of an object?

 

For now, I assembled a script which duplicates selected object and converts the duplicate into BB mesh.
It's not the same though.

 

//Object Mode

toggleSelMode;

changeSelectMode -object;

MoveTool;

 

//Duplicate Object

duplicate -rr;

 

//Convert To BoundingBox

GeometryToBoundingBox

 

Cheers,

DS

0 Likes
Reply
Accepted solutions (1)
2,077 Views
2 Replies
Replies (2)

The-Digital-Shaman
Advocate
Advocate
Accepted solution

Hmm, one can add an object to a Layer in ChannelBox panel, then right click the later and Set Selected Layers -> Bounding Box.

 

BB On:

setLayerTo selected".levelOfDetail" 1;

 

BB Off (Full Detail):
setLayerTo selected".levelOfDetail" 0;

 

Or 

Just for the selected Layer:

 

setLayerTo onlySelected".levelOfDetail" 1;

setLayerTo onlySelected".levelOfDetail" 0;

 

Update; Easier method to switch display of an object into BB:

ShowBoundingBox;

HideBoundingBox;

 

However, disappointingly aligning pivot to Maya's BB doesn't work.

So my initial script is still useful.

0 Likes

jjbbqq
Enthusiast
Enthusiast

Display > Object Display > Bounding Box
or
In your mesh's shape node, Object Display > Drawing Overrides > Level of Detail = Bounding Box
They are the same setting.

0 Likes