How do I create a circle using python?

   1087   2   0
User Avatar
Member
10 posts
Joined: 10月 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: 8月 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 - 2019年10月16日 19:31:38
User Avatar
Member
10 posts
Joined: 10月 2015
Offline
Yes, a circle node. Your example is exactly what I was looking for. Thank you!
  • Quick Links