About Cosense
Help
Log in
hounotes
p
x
r
.
U
s
d
.
V
a
r
i
a
n
t
S
e
t
s
.
A
d
d
V
a
r
i
a
n
t
S
e
t
p
x
r
.
U
s
d
.
V
a
r
i
a
n
t
S
e
t
s
m
e
t
h
o
d
>
F
i
n
d
a
n
e
x
i
s
t
i
n
g
,
o
r
c
r
e
a
t
e
a
n
e
w
V
a
r
i
a
n
t
S
e
t
o
n
t
h
e
o
r
i
g
i
n
a
t
i
n
g
U
s
d
P
r
i
m
,
n
a
m
e
d
v
a
r
i
a
n
t
S
e
t
N
a
m
e
.
>
U
n
i
v
e
r
s
a
l
S
c
e
n
e
D
e
s
c
r
i
p
t
i
o
n
:
U
s
d
V
a
r
i
a
n
t
S
e
t
s
C
l
a
s
s
R
e
f
e
r
e
n
c
e
R
e
t
u
r
n
s
p
x
r
.
U
s
d
.
V
a
r
i
a
n
t
S
e
t
Related
Sort by
Related
Modified
Created
Last visited
Most linked
Page rank
Title
Links
pxr.Usd.VariantSet
[pxr.Usd] class>A UsdVariantSet represents a single [VariantSet] in USD>[Universal Scene Description: UsdVariantSet Class Reference https://graphics.pixar.com/usd/dev/api/class_usd_variant_set.html][* Public Member Functions]
pxr.Usd.VariantSets
[pxr.Usd] class>UsdVariantSets represents the collection of [VariantSet]s that are present on a UsdPrim.>[Universal Scene Description: UsdVariantSets Class Reference https://graphics.pixar.com/usd/dev/api/class_usd_variant_sets.html]
VariantSet
[USD Terms and Concepts]>A VariantSet is a [composition arc] that allows a content creator to package a discrete set of alternatives, between which a downstream consumer is able to non-destructively switch, or augment.
VariantSet の定義 (USD API)
2022-09-01 #Blog #USDResearch[VariantSet] / [Variant] のセットアップ[* USD API]`from pxr import Sdf, Usd, UsdGeom``stage = Usd.Stage.CreateNew("stage.usda")`
pxr.Usd.VariantSets
pxr.Usd.VariantSets.GetVariantSet
[pxr.Usd.VariantSets] method>Return a UsdVariantSet object for variantSetName.>[Universal Scene Description: UsdPrim Class Reference https://graphics.pixar.com/usd/dev/api/class_usd_prim.html#a607da249e11bc4f5f3b4bf0db99861ab]
pxr.Usd.Prim.GetVariantSets
[pxr.Usd.Prim] method>Return a UsdVariantSets object representing all the VariantSets present on this prim.>[Universal Scene Description: UsdPrim Class Reference https://graphics.pixar.com/usd/dev/api/class_usd_prim.html#a9949ecc0b27afc66d61f2d0f88453e52]
VariantSet
Setup VariantSet in Solaris
Add Variant LOP
Variant
[USD Terms and Concepts]>A variant represents a single, named variation of a [VariantSet]; each VariantSet can have zero or a single variant selection expressed in scene description or as a fallback in a plugin or specified
pxr.Usd.VariantSet
pxr.Usd.VariantSet.GetVariantEditContext
[pxr.Usd.VariantSet] method>Helper function for configuring a UsdStage's EditTarget to author into the currently selected variant.>[Universal Scene Description: UsdVariantSet Class Reference https://graphics.pixar.com/usd/dev/api/class_usd_variant_set.html#a7e0767da11618ebe7aa2e6b6ef3c7021]
pxr.Usd.VariantSet.SetVariantSelection
[pxr.Usd.VariantSet] method>Author a variant selection for this VariantSet, setting it to variantName in the stage's current EditTarget.>[Universal Scene Description: UsdVariantSet Class Reference https://graphics.pixar.com/usd/dev/api/class_usd_variant_set.html#a51fe1abe65de6440b81799393b1a424f]
pxr.Usd.VariantSet.AddVariant
[pxr.Usd.VariantSet] method>Author a variant spec for variantName in this VariantSet at the stage's current EditTarget, in the position specified by position.>[Universal Scene Description: UsdVariantSet Class Reference https://graphics.pixar.com/usd/dev/api/class_usd_variant_set.html#a13cac327430d050108a8c22cada16b45]
pxr.Usd.Prim.GetVariantSet
[pxr.Usd.Prim] method>Retrieve a specifically named VariantSet for editing or constructing a UsdEditTarget.>[Universal Scene Description: UsdPrim Class Reference https://graphics.pixar.com/usd/dev/api/class_usd_prim.html#a607da249e11bc4f5f3b4bf0db99861ab]
Created
3 years ago
by
🐸
Updated
3 years ago
by
🐸
Views: 7
Page rank: 5
Copy link
Copy readable link
Start presentation
Hide dots
pxr.Usd.VariantSets.AddVariantSet
pxr.Usd.VariantSets
method
Find an existing, or create a new
VariantSet
on the originating UsdPrim, named variantSetName.
Universal Scene Description: UsdVariantSets Class Reference
Returns
pxr.Usd.VariantSet