A utility class to temporarily modify a stage's current EditTarget during an execution scope.
USD_API UsdEditContext(const std::pair< UsdStagePtr, UsdEditTarget > &stageTarget)
This is an overloaded member function, provided for convenience. It differs from the above function o...
USD_API ~UsdEditContext()
Restore the stage's original EditTarget if this context's stage is valid.
USD_API UsdEditContext(const UsdStagePtr &stage)
Construct without modifying stage's current EditTarget.
USD_API UsdEditContext(const UsdStagePtr &stage, const UsdEditTarget &editTarget)
Construct and save stage's current EditTarget to restore on destruction, then invoke stage->SetEditTa...