Hi - trying to edit the palletizing simulation to change the size of the bin. Can’t seem to get this script working, it gives the error that prim doesn’t have the attribute “set_local_scale”. Let me know
this is the only part I touched:
if spawn_new:
name = “bin_{}”.format(len(self.bins)) #generating names for each bin
prim_path = self.env_path + “/bins/{}”.format(name)
add_reference_to_stage(usd_path=self.assets.small_klt_usd, prim_path=prim_path)
self.on_conveyor = self.scene.add(CortexRigidPrim(name=name, prim_path=prim_path))
self._spawn_bin(self.on_conveyor)
self.bins.append(self.on_conveyor)
prim = get_prim_at_path(prim_path)
if(prim):
prim.set_local_scale(np.array([0.1, 0.1, 0.1]))