Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bounding Box Display?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
The-Digital-Shaman
1555 Views, 2 Replies

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

Bounding Box Display?

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

2 REPLIES 2
Message 2 of 3

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

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.

Message 3 of 3
jjbbqq
in reply to: The-Digital-Shaman

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

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report