Search - User list
Full Version: HOM : goto a specific coordinate in the network
Root » Technical Discussion » HOM : goto a specific coordinate in the network
sdugaro
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.
graham
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.
sdugaro
great. mucho gracias.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB