How to hide a dummy and cuboid grouped with it
Posted: 11 Sep 2021, 11:18
I want to get cuboids continuously on a conveyor belt. To do this, I added a cuboid and a dummy. Then grouped that dummy under the cuboid (box). Then in the child script for the conveyor belt, I added a code to copy-paste boxes onto the conveyor belt.
Copy-pasting objects
My task is done, the script does exactly what I want it to do but, the initial box I created is there on the floor. Is there a way to hide it or make it invisible?
Code: Select all
box = sim.getObjectHandle("Cuboid")
boxDummy = sim.getObjectHandle("BoxDummy")
Code: Select all
insertedObjects = sim.copyPasteObjects({box,boxDummy},0)