A script for changing view of an object from ortho to perspective


#1

You guys have helped so much.
Can I ask for entreat on the kindness of the scripting people for a macro or a script that would do the following?

  1. I select an object in one of the ortho views.
  2. I want a macro (or script?) that I can run and switch to the perspective tab and be zoomed tight on this same selected object and have it be selected when I make this switch.
  3. Please note, when I switch to the perspective tab, I would like to actually physically switch to that tab, not change whatever viewport I am in, to a perspective view (if possible).
    Thank you.

Cosmas


#2

Hi Cosmas,

Try this macro:

_-SetActiveViewport Perspective _Zoom _Selected

#3

Thank you Djordje,

I really appreciate it.