The zoom to Selection script included with the Unofficial patch has been improved.
Changes:
Can zoom to a single edge selection.
Can zoom to 3d encapsulated objects.
http://www.clintons3d.com/plugins/trues ... index.html"
Improved Zoom to Selection
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Improved Zoom to Selection
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: Improved Zoom to Selection
Update:
January 2012
Improved zoom to single edge, one line of code from an earlier fix was wrong.
Zoom to all objects in the scene via ctrl-shift-double middle click.
January 2012
Improved zoom to single edge, one line of code from an earlier fix was wrong.
Zoom to all objects in the scene via ctrl-shift-double middle click.
-
Draise
- Captain
- Posts: 3200
- Joined: 21 Sep 2009, 19:33
- Type the number ten into the box: 0
- Location: Bogota, Colombia
Re: Improved Zoom to Selection
How can I asign a shortcut key to the zoom to selection instead of using the MMB???... (I don't have one)
Link to a new thread :
vi ... =39&t=3222
Link to a new thread :
vi ... =39&t=3222
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: Improved Zoom to Selection
Update: Feb 2015
Change so it only zooms one 3D view instead of all open 3D views
Change so it only zooms one 3D view instead of all open 3D views
-
Draise
- Captain
- Posts: 3200
- Joined: 21 Sep 2009, 19:33
- Type the number ten into the box: 0
- Location: Bogota, Colombia
Re: Improved Zoom to Selection
Good update. I knew it did that, but didn't... report it. Oops!
-
trueBlue
- Captain
- Posts: 5548
- Joined: 06 Jul 2009, 22:50
- Type the number ten into the box: 10
Re: Improved Zoom to Selection
Its me again...
Can you take a peak at your Zoom to Selection script?
activeWindowOnly is not working or I am miss understanding it's use.
Is it possible to get this to work when viewing from a scene Camera.
If it is to complicated, no big deal. It works with the Eye Camera just fine.
Can you take a peak at your Zoom to Selection script?
activeWindowOnly is not working or I am miss understanding it's use.
Is it possible to get this to work when viewing from a scene Camera.
If it is to complicated, no big deal. It works with the Eye Camera just fine.
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: Improved Zoom to Selection
Hmm, don't think I ever tried it with a camera view. I'll let you know.trueBlue wrote: 22 Jun 2020, 00:41 Its me again...![]()
Can you take a peak at your Zoom to Selection script?
activeWindowOnly is not working or I am miss understanding it's use.
Is it possible to get this to work when viewing from a scene Camera.
If it is to complicated, no big deal. It works with the Eye Camera just fine.
D3D View.png
The activeWindowOnly looks like something that was started but never finished. I don't know if it works with widgets, but I did add it to my upcoming UU4Clinton scripts to zoom one window or zoom all windows.
-
trueBlue
- Captain
- Posts: 5548
- Joined: 06 Jul 2009, 22:50
- Type the number ten into the box: 10
Re: Improved Zoom to Selection
I am not sure of the disadvantage but I was thinking that Lights and Cameras should be filtered out.
For me, Zoom to Selection is really useful when Point Editing
For me, Zoom to Selection is really useful when Point Editing
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: Improved Zoom to Selection
If you don't want to zoom to them don't include them in your selection.trueBlue wrote: 22 Jun 2020, 01:24 I am not sure of the disadvantage but I was thinking that Lights and Cameras should be filtered out.
For me, Zoom to Selection is really useful when Point Editing
-
clintonman
- Captain
- Posts: 5659
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
Re: Improved Zoom to Selection
Checked and couldn't find any way to do it. Cameras seem to be tied to the view by invisible magic.trueBlue wrote: 22 Jun 2020, 00:41 ...
Is it possible to get this to work when viewing from a scene Camera.
If it is to complicated, no big deal. It works with the Eye Camera just fine.
D3D View.png
-
trueBlue
- Captain
- Posts: 5548
- Joined: 06 Jul 2009, 22:50
- Type the number ten into the box: 10
Re: Improved Zoom to Selection
I can get it to work by changing the Look at Selection2 command
RsTool.LookAtSelection('%WIN_ID%');
RsTool.LookAtSelection('{2C152F81-45A2-4035-8896-9E49D60C8A7A}');
RsTool.LookAtSelection('{4FF5F5FB-44E0-47B1-AA47-C40205FE113F}');
Problem is the Camera View WinID can change.
Edit: It is looking like RsTool.LookAtSelection('%WIN_ID%'); is the only command needed.
RsTool.LookAtSelection('%WIN_ID%');
RsTool.LookAtSelection('{2C152F81-45A2-4035-8896-9E49D60C8A7A}');
RsTool.LookAtSelection('{4FF5F5FB-44E0-47B1-AA47-C40205FE113F}');
Problem is the Camera View WinID can change.
Edit: It is looking like RsTool.LookAtSelection('%WIN_ID%'); is the only command needed.
