Hello, I was trying to figure out if there was a way to structure a file like this:
#usda 1.0
(
defaultPrim = "World"
metersPerUnit = 0.01
upAxis = "Y"
)
def "Geom"
{
def Mesh "Plane"
{
int[] faceVertexCounts = [4]
int[] faceVertexIndices = [0, 2, 3, 1]
point3f[] points = [(-50, 0, -50), (50, 0, -50), (-50, 0, 50), (50, 0, 50)]
uniform token[] xformOpOrder = ["xformOp:translate"]
}
}
def Xform "World"
{
def Mesh "Plane_01" (
instanceable = true
prepend references = </Geom/Plane>
)
{
double3 xformOp:translate = (133, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
def Mesh "Plane_02" (
instanceable = true
prepend references = </Geom/Plane>
)
{
double3 xformOp:translate = (266, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
}
where I can define all my geometry in the “Geom” prim and instantiate when necessary. Right now this is the result in the viewer:
but I would like to hide the original geometry (and possibly also hide “Geom” from the hierarchy as well) and make all the instances visible, since right now they aren’t.
Thanks for the help!