Skip to content

Instantly share code, notes, and snippets.

@hmasato
Last active December 16, 2015 18:39
Show Gist options
  • Save hmasato/5479452 to your computer and use it in GitHub Desktop.
Save hmasato/5479452 to your computer and use it in GitHub Desktop.
[houdini] _getPolyInfo_min.py
import hou
nodes = hou.selectedNodes()
for n in nodes:
print n
g = n.displayNode().geometry()
for f in g.prims():
print "f %d:" % f.number(),
for v in f.vertices():
print v.point().number(),
print
for p in g.points():
print "v %d:" % p.number(),
print p.attribValue("P"),
print p.attribValue("N"),
print p.attribValue("uv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment