How do I create a circle using python?

   945   2   0
User Avatar
Member
10 posts
Joined: Oct. 2015
Offline
I've been looking through the documents, but I can't find a method that would allow me to create a circle using python. Can someone give me an example of how I might do this?
User Avatar
Member
48 posts
Joined: Aug. 2017
Offline
If by circle, you mean a circle node, then :

import hou
geo = hou.node("obj").createNode("geo")
geo.createNode("circle")

function createNode in http://www.sidefx.com/docs/houdini/hom/hou/Node.html [www.sidefx.com]
Edited by SciTheSqrl - Oct. 16, 2019 19:31:38
User Avatar
Member
10 posts
Joined: Oct. 2015
Offline
Yes, a circle node. Your example is exactly what I was looking for. Thank you!
  • Quick Links