AUTO home on selection

   1974   3   2
User Avatar
Member
460 posts
Joined: 7月 2005
Offline
Hi guys

now that we have a new viewport and all that fanciness

I'm wondering if this is possible

if I have a selection and switch to top view using space+2 my view
shows all the visible elements in my scene, and then I have to press space+g to home into where I was, if I go to side view, same thing.

so, is there a way to stay focused on the selection?

added a video to better explain my point.

http://www.screencast.com/users/varomix/folders/Default/media/9da7e1aa-fa85-4e43-8bad-48ab158fe306 [screencast.com]

thanks a bunch
varomix - Founder | Educator @ Mix Training
Technical Artist @ Meta Reality Labs
User Avatar
Member
7025 posts
Joined: 7月 2005
Offline
Related: Houdini should remember that you want Link Ortho Views on all the time. IMO
User Avatar
Member
460 posts
Joined: 7月 2005
Offline
ok, silence, sooo

let's say I want to put this functionality into a tool in the shelf and then add a shortcut to that.
something like

command will be
pseudo code:
viewport.right()
viewport.homeSelection()

it's that possible?, I know hou.GeometryViewport.homeSelected() exists but how to I change to the right, top, persp cameras?

thanks
varomix - Founder | Educator @ Mix Training
Technical Artist @ Meta Reality Labs
User Avatar
Member
460 posts
Joined: 7月 2005
Offline
alright!! I solved it !!

I did this on the shelf then added a shortcut to it


viewtype -t ortho_top varomix01.panetab1.world
viewhome -s varomix01.panetab1.world

line 1 changes to top ortho view
line 2 homes the selection

make another tool for right, persp, and even uv if you like
power to HScript, python meeeh (This feature is not yet implemented) hehehe

just gotta replace that desk name with the current one
nice progress, cooool

cheers!!
varomix - Founder | Educator @ Mix Training
Technical Artist @ Meta Reality Labs
  • Quick Links