For the first question, I suggest _not_ trying to combine them. Place two masts at the location, one defined to display as the ¡°home¡± for there, and separately one to show for the ¡°distant¡±.
To have one signal completely follow another, no changes at all, I suggest writing a script like (That one's for SignalHeads, but you could do it for SignalMasts two if you¡¯d like)
Bob
On Jun 16, 2017, at 6:46 AM, oschreibke@... [jmriusers] <jmriusers@...> wrote:
Hi,
I am trying to figure out how signal heads, signal masts, main and advance signals (British: home/distant) work.
I'm trying to model Swiss Federal Railways (SBB/CFF/FFS) signalling - described in Wikipedia (). For simplicity I'm restricting myself to the four aspects which can be indicated on a four lamp advance signal; namely Halt, and Aspects 1-3. AFAIK they are the most common anyway.
I have two questions:
I have defined the various aspects for the main signal and the same for an advance signal. So far I've been able to create masts for the two signals separately which work as expected.
A common practice is to have a main signal and an advance signal (for the next main) on the same mast, as illustrated in the wikipedia article. Obviously they work independently (except if the main signal is showing Halt, then the advance signal is not lit). Do I need to code out the sixteen aspect combinations for the combined mast, or is there a way to reuse my existing definitions when defining a mast?
...
Basically, what I wanted to achieve was: If the main signal (ih1) changes aspect, show the same aspect on the advance signal (ih4). How do I best achieve this?
--
Bob Jacobsen
rgj1927@...