updating demo script
This commit is contained in:
@@ -245,11 +245,6 @@ class USDPrimitiveMesh:
|
|||||||
self.rgba = rgba
|
self.rgba = rgba
|
||||||
self.texture_file = texture_file
|
self.texture_file = texture_file
|
||||||
|
|
||||||
# self.usd_prim = Usd.Prim()
|
|
||||||
# self.usd_mesh = Usd.Mesh()
|
|
||||||
# self.prim_mesh = Usd.PrimMesh()
|
|
||||||
# self.transform_op = Usd.TransformOp()
|
|
||||||
|
|
||||||
self.prim_mesh = None
|
self.prim_mesh = None
|
||||||
|
|
||||||
def _set_refinement_properties(self):
|
def _set_refinement_properties(self):
|
||||||
@@ -395,10 +390,6 @@ class USDPrimitive:
|
|||||||
self.rgba = rgba
|
self.rgba = rgba
|
||||||
self.texture_file = texture_file
|
self.texture_file = texture_file
|
||||||
|
|
||||||
# self.usd_prim = Usd.Prim()
|
|
||||||
# self.usd_primitive_shape = Usd.PrimitiveShape()
|
|
||||||
# self.transform_op = Usd.TransformOp()
|
|
||||||
|
|
||||||
def _set_refinement_properties(self):
|
def _set_refinement_properties(self):
|
||||||
self.usd_prim.GetAttribute("subdivisionScheme").Set("none")
|
self.usd_prim.GetAttribute("subdivisionScheme").Set("none")
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from mujoco.usd import exporter
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
# load a model to mujoco
|
# load a model to mujoco
|
||||||
m = mujoco.MjModel.from_xml_path("/Users/abhishek/Documents/research/mujoco/model/cards/cards.xml")
|
m = mujoco.MjModel.from_xml_path("/Users/abhishek/Documents/research/mujoco/model/humanoid/humanoid.xml")
|
||||||
d = mujoco.MjData(m)
|
d = mujoco.MjData(m)
|
||||||
|
|
||||||
# create an instance of the USDExporter
|
# create an instance of the USDExporter
|
||||||
|
|||||||
Reference in New Issue
Block a user