HOM : goto a specific coordinate in the network

   1899   2   1
User Avatar
Member
380 posts
Joined: July 2005
Offline
Is there HOM to center a network at a specific coordinate?

Id like to be able to save a node/tile(s) coordinate and later go back to it.
I see theres a position method on nodes, but im not sure how to tell a network pane to center itself on it.

im currently using setSelected/setPicked on nodes, which takes me to
the correct network, but it requires that the network be homed manually.

tia.
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
There is no way to center to a particular position, but if you are already using setSelected, you can use hou.NetworkEditor.homeToSelection() to tell your pane to home in on whatever is selected. Of course, you'll have to find the network editor you want to use but that's pretty easy.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
380 posts
Joined: July 2005
Offline
great. mucho gracias.
  • Quick Links