One Logo Pool Ball
USDKit · IOS API REFERENCE

USDLayer.PathExpression

struct · iOS 27.0+ · SDK 27.1

struct PathExpression

A boolean expression over path patterns for selecting sets of prims. Path expressions combine patterns using set operations (union, intersection, complement, difference) and can reference other named expressions. The struct wraps `pxr::SdfPathExpression` and provides access to common expression patterns through static properties and string-based initialization.

Members (11)

get · iOS 27.0+

everything

TypeScript
static get everything(): USDLayer_PathExpression
Swift declaration
static var everything: USDLayer.PathExpression { get }

An expression that matches all paths in the scene hierarchy.

get · iOS 27.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

init · iOS 27.0+

init

TypeScript
static initStringLiteral(value: string): USDLayer_PathExpression
Swift declaration
init(stringLiteral value: String)

Creates an instance initialized to the given string value. - Parameter value: The value of the new instance.

get · iOS 27.0+

everyDescendant

TypeScript
static get everyDescendant(): USDLayer_PathExpression
Swift declaration
static var everyDescendant: USDLayer.PathExpression { get }

An expression that matches all descendant paths from the root.

get · iOS 27.0+

weakerReference

TypeScript
static get weakerReference(): USDLayer_PathExpression
Swift declaration
static var weakerReference: USDLayer.PathExpression { get }

A reference to a weaker expression for composition with stronger layers.

get · iOS 27.0+

text

TypeScript
get text(): string
Swift declaration
var text: String { get }

The string form of this expression.

get · iOS 27.0+

isEmpty

TypeScript
get isEmpty(): boolean
Swift declaration
var isEmpty: Bool { get }

Whether this expression has no patterns or references.

get · iOS 27.0+

nothing

TypeScript
static get nothing(): USDLayer_PathExpression
Swift declaration
static var nothing: USDLayer.PathExpression { get }

An expression that matches no paths, representing an empty selection.

get · iOS 27.0+

valueType

TypeScript
static get valueType(): USDPrim_Attribute_ValueType
Swift declaration
static var valueType: USDPrim.Attribute.ValueType { get }
init · iOS 27.0+

init

TypeScript
static init(): USDLayer_PathExpression
Swift declaration
init()

Creates an empty path expression.

init · iOS 27.0+

init

TypeScript
static init85788(expression: string): USDLayer_PathExpression
Swift declaration
init(_ expression: String)

Creates a path expression by parsing the given string. - Parameter expression: The expression source string.

Skipped declarations

No declarations were skipped in this snapshot.

All USDKit types →