![]() To do so, enter the following in a Houdini Python shell: import hrpyc hrpyc.start_server(use_thread=False, quiet=False) Next, switch to an external terminal application and navigate to the Houdini library: cd $H/houdini/python2.7libs Next, launch IPython: /usr/local/bin/ipython Then import core Houdini Python modules: import hou, hrpyc Finally, establish a connection with the Houdini application: connection, hou = hrpyc.import_remote_module() Snoop around your scene file: print -> buttery.hip node = hou.node('obj/box') tName('meltyBox') And see the results in the GUI: It's possible that this RPC approach will work with the other IDEs you've tried, too. After installing IPython, enable Houdini's remote procedure call (RPC). Make sure IPython is using the same version of Python as Houdini (currently 2.7.5 in Houdini 13.0). IPython is an interactive command-line debugger with code completion, shell integration, and dynamic help. To no avail.Ī free option that may be of interest is IPython with Houdini's remote procedure call (RPC). And yes, I have followed advices from various threads and have added Houdini's soho and python2.7libs directories to my interpreter paths. It's not critical, but it hinders the development of modules. Also, if I try to use enums (in kwargs), I usually get “Unresolved attribute reference” warnings all over the place. Whenever I try to assign an object to a variable, like in: node = hou.node('/obj/geo1/') tName('someName') I get no code completion in the second line after the dot. I tried with Eclipse with PyDev and P圜harm, but all I get is a mere hou module code completion. I don't expect miracles, like running or debugging HOM code directly from IDE, but at least I'd like it to support full code completion. I've browsed the forum in search for an answer to my question, but I was unable to find a thread that would explain how to configure one's Python IDE to completely support HOM.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |