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

Report crashes, strange behaviour, or apparent bugs
Post Reply
Baumhaus1

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

Post by Baumhaus1 » 11 May 2016, 13:14

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!
Last edited by Baumhaus1 on 01 Jun 2016, 13:29, edited 1 time in total.

coppelia
Site Admin
Posts: 6763
Joined: 14 Dec 2012, 00:25

Re: Scene object special properties

Post by coppelia » 11 May 2016, 15:56

Hello,

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

Cheers

Post Reply