¿ªÔÆÌåÓý

Locked Re: Signal Heads, signal masts, main and advance signals.


 

There¡¯s now a signal _mast_ version of the script at:



Sorry for the delay in getting it posted.

Bob

On Jun 17, 2017, at 6:52 AM, Bob Jacobsen rgj1927@... [jmriusers] <jmriusers@...> wrote:

Are you trying to use it with SignalHeads or SignalMasts?

If SignalHeads, make sure they¡¯re both defined before the script runs, e.g. in a panel file. It references the Heads without creating them.

If SignalMasts, change these lines (the arrows are indents, which should be the same as the original)

->self.inSignal = signals.getSignalHead(inputName)
->self.outSignal = signals.getSignalHead(outputName)

to

->self.inSignal = masts.getSignalMast(inputName)
->self.outSignal = masts.getSignalMast(outputName)

and

->self.outSignal.setAppearance(self.inSignal.getAppearance())

to

->self.outSignal.setAspect(self.inSignal.getAspect())

Sorry for the trouble. I¡¯ll add a script that does that shortly.

Bob
--
Bob Jacobsen
rgj1927@...

Join [email protected] to automatically receive all group messages.