开云体育

Re: Changing signal Mast Aspect with jython #jython #signalheads


 

The information is in the JMRI Javadoc. ?For signal masts, it is at?

Here is a Jython fragment.

mast = masts.getSignalMast('mast name')
if mast:
??? mast.setAspect('aspect name')
else:
??? print 'Mast not found'???????

The "if" statement checks to see if the mast was found. ?The name literals can also be variable names that have valid content.
? ? ??
Dave Sand


----- Original message -----
From: "Canadian Locomotive Logistics via groups.io" <CanadianLocomotiveLogistics=[email protected]>
Subject: [jmriusers] Changing signal Mast Aspect with jython #jython #signalheads
Date: Wednesday, March 19, 2025 8:28 PM

Here is a list of signal mast i have set up
does anyone have the syntax for jython to change the aspect of the signal.?
i’m not finding it anywhere.?


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