Now that I'm finally putting it into use in Houdini, I'm finding one thing interesting which perhaps someone here can better explain to me.
When learning about basic OOP in Python, generally the process of instantiating a class would go as follows:
1. Define the class in a module:
class My_Class(): pass def class_method(self): pass
2. Instantiate the class, run a method
import module x = module.My_Class() x.class_method()
What I think I notice is that in Houdini, the process is a bit different to this. Creating a class object is not done by directly calling the class, but through a method. So instead of...
x = hou.Node("path") y = x.Geometry()
x = hou.node("path") y = x.geometry()
I'm curious as to the logic of why this is done this way, if that's not an answer too complicated to bother explaining?
>> On a side note, I have to mention that so far, I'm finding the experience of using Python in Houdini to be excellent, particularly the documentation is comprehensive and really easy to read. Thank you SideFX!