PaddingtonBear
PaddingtonBear
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
How can I use Python to create new geometry? March 17, 2008, 6:03 a.m.
Thank you so much! That's fantastic 
I had no idea that hou.Polygon was derived from hou.Face, or that to call .addVertex I had to pass it a previously created point object
You've seriously saved my ass! This is fantastic
Thanks again,
Paddington

I had no idea that hou.Polygon was derived from hou.Face, or that to call .addVertex I had to pass it a previously created point object

You've seriously saved my ass! This is fantastic

Thanks again,
Paddington
How can I use Python to create new geometry? March 15, 2008, 7:52 a.m.
Hi everyone,
Thanks for the replies. Perhaps I should have been clear earlier, I am fully intending to write a python SOP using my algorithm
, meaning the previously mentioned methods are available to me.
The problem I was having was how to use the hou.Geometry.createPolygon() and hou.Face.addVertex() methods. I'm still fairly new to python, and so I'm not sure how I can call these and specify where the points for that face are located, and how many there are. I'm guessing I need to create a polygon, and then add vertices to the polygon - but is there a difference between a polygon object and a face object? Or once I've created a polygon will I have the addVertex method available to me?
The example for geo.createPoint() given by mtucker is fantastic, and shows very clearly how to create and move points - any chance of a similar example (it can be just as simple) to show how to call and use the other methods?
I really appreciate the replies so far, and if anyone can clear up my last couple of queries I'd be extremely grateful.
Cheers!
Paddington
Thanks for the replies. Perhaps I should have been clear earlier, I am fully intending to write a python SOP using my algorithm

The problem I was having was how to use the hou.Geometry.createPolygon() and hou.Face.addVertex() methods. I'm still fairly new to python, and so I'm not sure how I can call these and specify where the points for that face are located, and how many there are. I'm guessing I need to create a polygon, and then add vertices to the polygon - but is there a difference between a polygon object and a face object? Or once I've created a polygon will I have the addVertex method available to me?
The example for geo.createPoint() given by mtucker is fantastic, and shows very clearly how to create and move points - any chance of a similar example (it can be just as simple) to show how to call and use the other methods?
I really appreciate the replies so far, and if anyone can clear up my last couple of queries I'd be extremely grateful.
Cheers!
Paddington

How can I use Python to create new geometry? March 14, 2008, 9:39 a.m.
That sucks :roll:
Can the developers confirm if it is indeed possible to create polygonal geometry using python? I guess I'll have to use the HDK if not, but I was really hoping to avoid this option because I'd have to recompile etc. for new versions of Houdini, which I wouldn't need to do if I implemented it using python
Paddington
Can the developers confirm if it is indeed possible to create polygonal geometry using python? I guess I'll have to use the HDK if not, but I was really hoping to avoid this option because I'd have to recompile etc. for new versions of Houdini, which I wouldn't need to do if I implemented it using python

Paddington