python hda

   1718   3   1
User Avatar
Member
71 posts
Joined: Feb. 2010
Offline
I have a code inside the python HDA that evaluates then number of points.Now i want to display the point count in the parameter interface for a parameter.how to do it
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
Hey omy you Do not even need python for this. Just create a label parameter, and as the label first line, put the following expression:`npoints(“path/nodename”)`
-G
User Avatar
Member
71 posts
Joined: Feb. 2010
Offline
oh yeah and for vertices?
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
Branch off a vertexSplit node from the node you want the polycount to happen at, and set the attribute to the one at which th vertices are not interpolated (ie UVs) this will create a point for each vertex at that node. After that, simply point the npoints expression to that node instead (it does not even have to be visible)
-G
  • Quick Links