Parameter node

The parameter nodes are used to define the parameters of the PythonPart and the layout and controls of the property palette.

The order of the <Parameter> nodes in the <Page> node defines the order of the controls in the tab control of the property palette. Each parameter in the pyp-file can be addressed by his name in the PythonPart script (py-file).

Depending on the required control type for the input of the parameter value, a corresponding value type must be set for the parameter. The standard value types are presented in the following chapters.

The value of a PythonPart parameter can also be a Python list, Python tuple, or a geometry element. The standard value types are used internally for the data processing of the parameter and for the creation and layout of the controls in the property palette. The special value types are introduced in the following chapters.

A detailed description of the options for disabling or hiding controls in the property palette can be found here:

If a control is located in a row, the width and the height of the control can be defined. More information are shown here:

The layout of the control text can be adapted by optional tags, the detailed description can be found here:

The background color of the input fields can be adapted by optional tags

Show a parameter on multiple pages

A <Parameter> with the same name and values can occur on multiple pages inside the pyp-file. This makes it possible to have a control for a parameter on different pages within the property palette.

The implementation of using a parameter on multiple pages is described in the example AllControls, which is located in

…\etc\Examples\PythonParts\PaletteExamples\AllControls.pyp
…\etc\PythonPartsExampleScripts\PaletteExamples\AllControls.py