AddRelationshipTargetCommand

class omni.usd.commands.AddRelationshipTargetCommand(relationship: Relationship, target: Path, position: ListPosition = Usd.ListPositionBackOfPrependList)

Bases: RelationshipTargetBase

Add target to a relationship.

Methods

__init__(relationship, target[, position])

Constructor.

do()

__init__(relationship: Relationship, target: Path, position: ListPosition = Usd.ListPositionBackOfPrependList)

Constructor.

Parameters
  • relationship (Usd.Relationship) – Relationship handle.

  • target (Sdf.Path) – The target path to add into the target list of relationship.

  • position (Usd.ListPosition, optional) – List position to add the target path to. Defaults to Usd.ListPositionBackOfPrependList.