¿ªÔÆÌåÓý

Locked Re: signalMastManagerInstance


 

David,

If your script starts with "import java" and "import jmri", this will work:

mast = masts.getSignalMast(mastName)


Dave Sand

On Sep 4, 2018, at 5:11 AM, David Smith via Groups.Io <daversmth@...> wrote:

After some poking around I changed this to

jmri.managers.DefaultSignalMastManager.getSignalMast(held_mst)

but now get an error

TypeError: getSignalMast(): expected 2 args; got 1
what is the 2nd argument that getSignalMast is expecting ?

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