list primitive groups or point groups with hom

   2317   3   1
User Avatar
Member
380 posts
Joined: July 2005
Offline
Hi there when i MMB on a node i see the output below.
It displays information about how many primitive groups i have
and what their names are. Does anyone know how to ask a
node for this information via HOM? thanks!

/ -> opinfo /obj/geo1/mixed
mixed:
Full Name: /obj/geo1/mixed
Operator type: group
_______________________________________
225 Points
83 Primitives
441 Vertices
80 Polygons
1 Meshes
1 NURBS Surfaces (0 rational)
1 Spheres

83 Items Highlighted
____________________________________
2 Primitive Groups:
81 primitives in poly_and_mesh
83 primitives in group2
____________________________________
Size: 3.07334, 3.00167, 2.95742
Center: 0.463329, 0.500835, 0.457899
Bounds: 2, 2.00167, 1.93661
-1.07334, -1, -1.02081
____________________________________
Approximate Memory Usage: 36 Kb
____________________________________

_______________________________________


There is a
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
HOM currently doesn't have any support for groups. I wrote some wrappers around hscript as described in this thread to at least provide some fairly straight forward read access for SOPs/DOPs.

http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=14345&highlight=hom+groups [sidefx.com]

Here's the latest version of that module.

*Edit*
My apologies. After posting it I decided to look through the code since it's a bit old and I came to discover a couple things that weren't working as a result of some of my previous changes a while ago. I've uploaded a new version that should work properly with regards to getting the center and bounding boxes of the geometry groups.

Attachments:
grouputils.tar.gz (2.6 KB)

Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
380 posts
Joined: July 2005
Offline
awesome, thanks!

is there a place i can get a big picture view of whats currently
supported in HOM wrt legacy hscript methods and whats not?
i.e. any public roadmap available wrt to what still needs to be
fleshed out so far as making hom functionally equivalent to
hscript?
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
Unfortunately there isn't. Your best bet is to just look in the docs and see what what shows up as not being implemented yet.
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links