create_prim_view_from_query#

omni.graph.core.create_prim_view_from_query(
include: list,
exclude: list = [],
) omni.graph.core._omni_graph_core.IPrimView#

Create a prim view from lists of tuples of (name, type) pairs, used to create a query that returns a subset of Prims in fabric.

Note that the prim view returned may not return any Prims until it has been applied to a graph.

Parameters:
  • include – Attributes that must exist on the Prim to be returned by the query.

  • exclude – Attributes that must not exist on the Prim to be returned by the query.