RefPointButton¶
The value type RefPointButton is used to create a button for a selection of a reference point ID. The ID is an integer value corresponding to the reference point.
The following IDs are assigned to the existing reference points:
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
Syntax¶
<Parameter>
<Name>RefPointButtonRow</Name>
<Text>RefPointButton</Text>
<ValueType>Row</ValueType>
<Parameter>
<Name>RefPointId</Name>
<Value>5</Value>
<ValueType>RefPointButton</ValueType>
</Parameter>
</Parameter>
The ID of the selected reference point is accessible via the parameter with the value type RefPointButton.
Optional tags¶
If the PythonPart should be localized, the following tag must be added
<TextId>1001</TextId>
Sometimes it’s useful to disable or hide the button depending on the value of another parameter. This is achieved by adding additional tags to the parameter or by defining functions in the py-file. See Enable and visible options
The persistent state of the parameter can be changed by adding
<Persistent>…</Persistent>
Example¶
The implementation of the RefPointButton value type is described in the example AllControls, which is located in
…\etc\Examples\PythonParts\PaletteExamples\AllControls.pyp
…\etc\PythonPartsExampleScripts\PaletteExamples\AllControls.py