You can use - setboolprop here:
```
p_target . object -> setboolprop(ctxt, 0, P_VISIBLE, False, false);
```
There's a family of set*prop methods which make it simpler to set properties to values directly without needing conversion (see the definiton of MCObject class).