orbitersim / orbiter

Open-source repository of Orbiter Space Flight Simulator
MIT License
1.62k stars 220 forks source link

Missing SetMeshVisibilityMode Equivalent in Lua Vessel Scripting #462

Closed ThChicken closed 5 months ago

ThChicken commented 6 months ago

There does not appear to be an vessel script equivalent to SetMeshVisibilityMode(meshindex, MESHVIS####) in Lua. Vessel meshes can be seen only in external views by default, but it is not possible to set their visibility to the cockpit or anyplace else with the MESHVIS_#### camera mode constants.

ThChicken commented 5 months ago

I will close this issue. I was informed that this is indeed available as vi:set_mesh_visibility_mode(hmesh, FLAG), and verified that it does work. My apologies. I tried searching for the command but the underscores in the Lua command name didn't match my search query.