I am trying to load and scatter2d a set of random boxes. However some load with a scale of 0.01 and some 0.0001. The code below doesnt seem to set the scale correctly. Any ideas ?
def env_props(plane, size=config[‘num_items’]):
instances = rep.randomizer.instantiate(cardboard_usd_files, size=size, mode="scene_instance")
with instances:
rep.modify.attribute("xformOp:scale", 0.01)
rep.modify.semantics([('class', 'CardBox')])
rep.randomizer.rotation(min_angle=(0.0,0.0,0.0), max_angle=(0.001, 0.001, 180.0))
rep.modify.pose(scale=(1.0, 1.0 ,1.0))
rep.randomizer.scatter_2d(surface_prims=plane, check_for_collisions=True, offset=0.01)
return instances.node