MoveTargetToObjects (Rhino)
All  1-6  7-11

Previous
Next
 From:  Michael Gibson
2083.7 In reply to 2083.6 
Hi Nick, re: MoveTargetToObjects - I have added some new scripting
stuff for the next v2 beta to make this possible.
The script that will do it is this:

code:
script:var objs = moi.geometryDatabase.getSelectedObjects(); if ( objs.length > 0 ) { moi.ui.mainWindow.viewpanel.getViewport('3D').targetPt = objs.getBoundingBox().center; }


Again, this will not work in the current beta, but will in the next one that comes out.

- 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:  Anis
2083.8 In reply to 2083.7 
Michael...

could you give us a illustration in gif format ?
  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
2083.9 In reply to 2083.8 
Hi Anis -

> could you give us a illustration in gif format ?

You can see something similar by pushing the "Reset" button that is at the bottom of the 3D viewport, which centers the rotation pivot point (the "target") at the center of the bounding box of the selected objects and also fits them to the screen.

This new script does nearly the same thing, but only does the centering part without doing any "zoom to fit" step.

I don't think it is of much use to very many people, just something that Nick had requested for some particular purpose.

Generally I would expect for people to use that "Reset" button instead of this.

If you need to see an illustration of the Reset button, it is covered in one part of the tutorial videos here: http://moi3d.com/1.0/docs/tutorials.htm

- 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:  Nick (BODINI)
2083.10 In reply to 2083.7 
Neat, thanks! Dont you ever want to slide an object over to the center, but retain the zoom level? I do, more often than not. :-)

Info on it here: http://www.rhino3d.com/3/bonus.htm (look for "MoveTargetToObjects", there is an animation there).
  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:  Michael Gibson
2083.11 In reply to 2083.10 
Hi Nick,

> Dont you ever want to slide an object over to the center, but
> retain the zoom level? <...>

Not really that I can remember... I guess I just don't worry very much about maintaining the zoom level.

Typically if I want to work on an object that I'm not centered on I want to center on it and also look at the whole object with the zoom-extents type action. If I want to center on a particular spot and also zoom in tighter than the whole object, then I use Zoom area to do that.

At any rate, with the next beta you'll be able to do whichever method that you like! ;)

- 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
 

Reply to All Reply to All

 

 
 
Show messages: All  1-6  7-11