connections
TypeScriptget connections(): Array<USDLayer_Path>Swift declarationvar connections: [USDLayer.Path] { get nonmutating set }The connection target paths authored on this attribute.
struct · iOS 27.0+ · SDK 27.1
struct Attributeget connections(): Array<USDLayer_Path>Swift declarationvar connections: [USDLayer.Path] { get nonmutating set }The connection target paths authored on this attribute.
set connections(value: Array<USDLayer_Path>)Swift declarationvar connections: [USDLayer.Path] { get nonmutating set }The connection target paths authored on this attribute.
get description(): stringSwift declarationvar description: String { get }A summary description of this attribute. This property is safe to access on an invalid or expired attribute.
get timeSamples(): Array<USDStage_TimeCode>Swift declarationvar timeSamples: [USDStage.TimeCode] { get }The composed set of time codes for which this attribute has authored time samples.
get variability(): USDPrim_Property_VariabilitySwift declarationvar variability: USDPrim.Property.Variability { get }The variability of this attribute, which indicates whether its value can change over time.
get name(): USDTokenSwift declarationvar name: USDToken { get }The name of this attribute. An attribute's name is the last component of its ``path``. This property is equivalent to the ``USDLayer.Path/name`` property of that path.
get path(): USDLayer_PathSwift declarationvar path: USDLayer.Path { get }The complete scene path to this attribute, relative to its stage.
get prim(): USDPrimSwift declarationvar prim: USDPrim { get }The nearest prim that contains this attribute.
clear(): booleanSwift declaration@discardableResult func clear() -> BoolClears the authored value of this attribute.
get stage(): USDStageSwift declarationvar stage: USDStage { get }The stage that owns this attribute. An attribute's state and validity is connected to its stage. An attribute becomes invalid when the lifetime of its stage ends. It can also become invalid when the stage is modified.
value(time?: USDStage_TimeCode): (number) | nullSwift declarationfunc value<T>(at time: USDStage.TimeCode = .default) -> T? where T : USDPrim.Attribute.ValueReturns this attribute's value at the given time, or `nil` if unauthored.
get isValid(): booleanSwift declarationvar isValid: Bool { get }A Boolean value indicating whether this attribute is valid. An attribute's validity is connected to a ``USDStage``. An attribute becomes invalid when the lifetime of its stage ends. An attribute will also expire if its stage no longer defines a value for the attribute. `isValid` is false if this attribute has expired.
get primPath(): USDLayer_PathSwift declarationvar primPath: USDLayer.Path { get }The complete path to the nearest prim that contains this attribute. `primPath` is the ``USDPrim/path`` of this attribute's ``prim``.
get roleName(): USDTokenSwift declarationvar roleName: USDToken { get }The name of this attribute type's role, which clarifies the semantic purpose of its values.
setValue(value: number, time?: USDStage_TimeCode): booleanSwift declaration@discardableResult func setValue<T>(_ value: T, at time: USDStage.TimeCode = .default) -> Bool where T : USDPrim.Attribute.ValueSets this attribute's value at the given time.
get typeName(): USDPrim_Attribute_ValueTypeSwift declarationvar typeName: USDPrim.Attribute.ValueType { get }The type of the values this attribute stores.
static init(): USDPrim_AttributeSwift declarationinit()An invalid attribute handle.
static init82640(object: USDStage_Object): (USDPrim_Attribute) | nullSwift declarationinit?(_ object: USDStage.Object)Casts an object handle to an attribute handle. Returns `nil` if the object is not an attribute.
static init98942(object: USDPrim_Property): (USDPrim_Attribute) | nullSwift declarationinit?(_ object: USDPrim.Property)Casts a property handle to an attribute handle. Returns `nil` if the property is not an attribute.
No declarations were skipped in this snapshot.