Centre Selection

Next
 From:  danperk (SBEECH)
5392.1 
Hi Michael,

I was wondering if there's a way to centre a selection in a view/views, without zoom to fit?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5392.2 In reply to 5392.1 
Hi danperk,

> I was wondering if there's a way to centre a selection in a view/views, without zoom to fit?

There's a script that can do that here:
http://kyticka.webzdarma.cz/3d/moi/#MoveTargetToObjects

If you set that up on a shortcut key, when you press the key the 3D view will be centered on center of the bounding box of the selected objects but with no zoom change with respect to the current pivot point.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  danperk (SBEECH)
5392.3 
Thanks Michael!

Is there any way to have the same function in an active 2D view?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5392.4 In reply to 5392.3 
Hi danperk - this version will do it to a 2D view as well:

script: /* Center view on selection, no zoom */ var objs = moi.geometryDatabase.getSelectedObjects(); if ( objs.length > 0 ) { moi.ui.getActiveViewport().targetPt = objs.getBoundingBox().center; }

That will work on either a 2D or 3D view, if you have a maximized view it will do that maximized one and if you're in Split view mode it will do the view that the mouse is currently over top of or the one that was last clicked in if the mouse is not over top of any view at that moment.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  danperk (SBEECH)
5392.5 
Great Stuff! Thanks again!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All