Page 1 of 1

Scene object special properties can't be set by remote API

Posted: 11 May 2016, 13:14
by Baumhaus1
Hey there,

I tried to use the command simSetObjectSpecialProperty() in the regular API. I wanted an object to be renderable, collidalbe, cuttable, measureabe, detectable_all. The documentation says:
Scene object special properties can be combined with the OR operator
This did NOT work for me!
V-Rep Version is 3.3.0.

It is the "+"-Operator which is working:

Code: Select all

simSetObjectSpecialProperty(object_handle,sim_objectspecialproperty_renderable+sim_objectspecialproperty_collidable+sim_objectspecialproperty_cuttable+sim_objectspecialproperty_detectable_all+sim_objectspecialproperty_measurable)
Please do update/correct the online/offline documentation. It was hard to make simSetObjectSpecialProperty() with combined API-constants work!

Thanks and kind regards!

Re: Scene object special properties

Posted: 11 May 2016, 15:56
by coppelia
Hello,

Boolean operations are not directly supported by Lua. You should use simBoolAnd32, simBoolOr32 or simBoolXor32.

Cheers