primgroupmask expression function

Returns the list of groups matching a pattern in a surface node.

All Usage Examples

See also: hasprim, primlist, primgrouplist

Usage

primgroupmask(surface_node, pattern)

The returned string is a space separated list of group names.

To simply get a list of all primitive groups (no pattern), use primgrouplist.

Examples

primgroupmask("/obj/model", "group*")

Returns the names of all primitive groups in the specified surface node which start with “group”. So this may be something like “group1 group2 group_leftleg”.