Houdini Python autocompletion

   3800   3   0
User Avatar
Member
2 posts
Joined: 2月 2014
Offline
Hello Folks,

I'm just starting to learn python in houdini and I notice that the autocompletion doesnt work regulary. Is there something I need to setup? Or is there a workaround for this?

Best wishes,
Nicolas
User Avatar
Member
101 posts
Joined: 2月 2015
Offline
Hi, a good thing to know ( if you don't already ) is that houdini will prompt all the methods of an object if this object is stored in a variable.
if you type :

hou.node('/obj/geo1'). …. # houdini will prompt nothing

#but if you put the object in a variable, and then call a method on this variable

n = hou.node('/obj/geo1')
n. … # this will prompt every available method



Hope it helps
https://vimeo.com/user43710534 [vimeo.com]
User Avatar
Member
1 posts
Joined: 4月 2015
Offline
This quirk I detest wholeheartedly. Pain inducing for newcomers to Pyton//Houdini.
User Avatar
Member
5 posts
Joined: 11月 2019
Offline
For me it is the exact other way around. If I just use hou.no... it will give me all options, but if I use geo.add... there is nothing. Really frustrating.
  • Quick Links