OOF2: The Manual

6.6. Enumerated Types

Many command arguments in OOF2 require the user to choose from a small set of predetermined constant values, called Enums.[49] These Enums differ from RegisteredClasses in that they are much simpler objects, and never require any parameters. This section describes all of the Enum classes and lists their allowed values.

In the GUI, Enum parameters are chosen from a pull-down menu. In scripts, Enum parameters can be set to the name of the Enum object, in quotation marks. For example, if you want to change the default New Layer Policy, you could put the following line in the .oof2rc in your home directory:

Here, policy is a parameter that requires an object from the NewLayerPolicy class.



[49] This Enum is not the same as the builtin Python enum.Enum class.