### originScript

Runs a origin subsetter script via JSR223. The eventAccess is put as "eventAccess", the EventAttrImpl as "eventAttr" and the preferred origin as "preferredOrigin". The eventAccess object is a VelocityEvent, the same class used in the templates for the printlineEventProcess. Note that most of the VelocityEvent methods return Strings, and so if you want to do calculations, you probably want to deal with the eventAttr and preferredOrigin. See the scripting tutorial for more information on inlining scripts into a SOD recipe.

### Example

    <originScript type="jython">
    result = preferredOrigin.magnitudeList.get(0).value > 5.5
    </originScript>

### This consists of

<originScript>

An attribute named type with a value of Any Text Any text
</originScript>

### Places this can be found

In origin there is a choice between all of the following

- removeEventDuplicate
- eventAttrName
- geographicalRegion
- seismicRegion
- originTimeRange
- magnitudeRange
- originDepthRange
- originPointDistance
- originPointAzimuth
- originPointBackAzimuth
- pointLinearDistanceMagnitude
- eventArea
- eventBoxArea
- eventPolygonFile
- catalog
- contributor
- networkTimeRange
- originArrayAND
- originArrayOR
- originAND
- originOR
- originNOT
- externalOriginSubsetter
- youngerThan
- printlineEventProcess
- CSVEventPrinter
- similarEvent
- originScript