hasprim expression function

Returns 1 if a specified primitive is in a specified group.

Replaced by: hou.PrimGroup

All Usage Examples

See also: haspoint, pointlist, primlist

Usage

hasprim(group_name, surface_node, prim_num)

The function will return 0 if the group is a point group.

Examples

hasprim("ears", "/obj/geo1/facet1", 3)

Returns 1 if the group “ears” contains primitive number 3, otherwise returns 0.