Loading...
Searching...
No Matches
authoring.h
1//
2// Copyright 2026 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_EXTRAS_EXEC_EXAMPLES_INVERTIBLE_RIGS_EXAMPLE_AUTHORING_H
8#define PXR_EXTRAS_EXEC_EXAMPLES_INVERTIBLE_RIGS_EXAMPLE_AUTHORING_H
9
10#include "pxr/pxr.h"
11
12#include "api.h"
13
15#include "pxr/usd/usd/attribute.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19class UsdTimeCode;
20class VtValue;
21
26public:
27 EXEC_INVERTIBLERIGSEXAMPLE_API
28 InvertibleRigsExample_Authoring(const UsdStageRefPtr &stage);
29
45 EXEC_INVERTIBLERIGSEXAMPLE_API
46 void
48 const UsdAttribute &switchAttribute,
49 const UsdTimeCode &time);
50
71 EXEC_INVERTIBLERIGSEXAMPLE_API
72 void
74 const UsdAttribute &switchAttribute,
75 const UsdTimeCode &time,
76 const TfToken &switchValue);
77
78private:
79 ExecUsdSystem _execSystem;
80 UsdAttributeVector _inputAvars;
81 UsdAttributeVector _outputSpaces;
82};
83
84PXR_NAMESPACE_CLOSE_SCOPE
85
86#endif
The implementation of a system to procedurally compute values based on USD scene description and comp...
Definition system.h:46
Class that implements authoring functionality needed to demonstrate an invertible rig with compensati...
Definition authoring.h:25
EXEC_INVERTIBLERIGSEXAMPLE_API void CompensateSwitch(const UsdAttribute &switchAttribute, const UsdTimeCode &time, const TfToken &switchValue)
Authors a value to a switch attribute with compensation that authors input avar values such that the ...
EXEC_INVERTIBLERIGSEXAMPLE_API void BreakdownInputAvars(const UsdAttribute &switchAttribute, const UsdTimeCode &time)
For each input avar, authors a knot or a time sample at the given time, with the value of the avar at...
Token for efficient comparison, assignment, and hashing of known strings.
Definition token.h:71
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
Definition attribute.h:183
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Definition timeCode.h:72
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition value.h:90