When i try to remove objects this way I get an error
27: in sim.removeObjects: one of the function's argument type is not correct.
Code: Select all
function sysCall_actuation()
shapeHandle=sim.getObject('/Shape',{noError=true})
if(not sim.isHandle(shapeHandle)) then
createdShape=simSurfRec.reconstruct_scale_space(pointCloudHandle,4,12,300,0.001)
shapeHandle=sim.getObject('/Shape')
else
sim.removeObjects(shapeHandle)
--local createdShape=simSurfRec.reconstruct_scale_space(pointCloudHandle,4,12,300,0.001)
end
end