I have written a measure shelf tool. When executed a ui pops up asking for a geo and its transforms. It then repeats this process for a second geo. A line is then created between the centroids of these two geos. At the same time a node is created which displays the distance between the two points.
Understandably, this would be much faster to create node by node within Houdini rather than scripting. However, my purpose in doing this was to dive deeper into the HDK.
I want to edit the parameter interface of the of the object containing my two geos by promoting their transforms to a folder(tab) at object level. How do I programmatically create a 3 float vector on object level upon execution of my shelf button? I suspect that hou.FloatParmTemplate is involved in this, but I can't seem to work it into my code correctly. Please see my attached script.
Any help would be much appreciated.












