Script for BoundingBox Mode in Maya
Here is a tiny little script to add a hotkey for BoundingBox mode for all the viewports in maya.
It's been years working in maya and it always felt a bit annoying to go to the viewport menu and change the mode to BoundingBox all the time. So I had some free time and came up with this solution.
Nothing fancy but does the job very well.
Here it is,
{
for ( $model in `getPanel -all`)
{
if ( startString ( $model,10) ==
"modelPanel" )
modelEditor -e -da "boundingBox"
$model;
}
}
Just copy-paste it into your mel script editor, drag and drop into your shelf.
You can also use it to create a new hotkey according to your choice just by creating a new "runtime command editor".
It can be very useful especially when dealing with heavy geometry.
Give it a try.!!
Comments
Post a Comment