検索 - User list
Full Version: Get insertion point node in python
Root » Solaris and Karma » Get insertion point node in python
Manuel Gaudreau
Hi all, I'm trying to get the current insertion point for a given viewport. I've been looking in the doc but there is not much information about it. I didn't see anything in the method of hou.SceneViewer. Basically I just need the node.

If someone can help me I would appreciate it. Thanks!
goldleaf
It looks like it's actually tied to a lopnetwork; there is an insertionpointutilsmodule available, something like this might help:

import toolutils, insertionpointutils

viewer = toolutils.sceneViewer()
ip     = insertionpointutils.getInsertionPoint(viewer.pwd())
print(ip)
Manuel Gaudreau
Awesome! That's exactly what I was missing. Thank you.
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