How to control visibility of nodes inside an attachment?

Let’s assume we have a combat aircraft.

  • We put a dummy where we want a pylon to be attached.
  • On the pylon model (separate scene), we put dummies where we want payloads to be attached.
  • Then, we have a separate model of a bomb which will get attached to the pylon

The questions are:

  1. Can I reference the dummies of the pylon in order to show/hide bombs on it?
  2. Should I reference the pylon dummies in the main aircraft.xml file, or in the pylon’s own XML file?

Assuming the pylons dummies in the aircraft xml file should always be visible,
and they are just a convenience for you to have a single pylon object
replicated and attached ( but consider if it’s worth it, instead of just
adding the pylons as instanced mesh in the plane model ), the visibility
condition will be in the pylon xml file, on the bombs attach dummy nodes, and
keep in mind the eventual variables the visibility will based on ( unless it’s
an L: variable, which is global ) refers to the pylon Simobject, not the
aircraft’s.