<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/group",
  "metadataVersion" : "0.1.0",
  "role" : "Namespace",
  "symbol" : {
    "kind" : "Namespace",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "group"
  },
  "title" : "group"
}
-->

# group

A set of nodes for querying the group of the current particle. Available only when the simulation uses a grouped or strips element grouping.

## Topics

### Functions

[`int group::elementActiveInGroup()`](/documentation/ComputeGraph/group/elementActiveInGroup)

Returns the number of currently active elements in the group.

[`int group::elementIndexInGroup()`](/documentation/ComputeGraph/group/elementIndexInGroup)

Returns the index of the current element within its group.

[`int group::elementMaximumInGroup()`](/documentation/ComputeGraph/group/elementMaximumInGroup)

Returns the maximum number of elements that can exist in the group.

[`int group::groupIndexInSystem()`](/documentation/ComputeGraph/group/groupIndexInSystem)

Returns the index of the current group within the particle system.

[`int group::maximumGroupsInSystem()`](/documentation/ComputeGraph/group/maximumGroupsInSystem)

Returns the maximum number of groups allowed in the particle system.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)