User guide

113
%s
</group_parameter>
""" % (GetTimingParameterXML(),)
which corresponds to the following UI in the Parameters tab.
We parse the XML description during our node's construction, with the following line of code:
self.getParameters().parseXML(_Parameter_XML)
Specifying UI Hints
In addition to describing the parameters' types, names, and default values, we can also describe how they are
displayed in the UI by specifying UI hints. For a complete tutorial on this subject, please see Help > Documentation
> Args Files.
The approach taken here is to create a dictionary where each key is the name of the parameter, and the value is
another dictionary containing the hints for this parameter. See below for a snippet illustrating this:
_ExtraHints = {
"MyCustomImporter.name" : {
"widget" :"newScenegraphLocation",
},
'MyCustomImporter.abcAsset':{
'widget':'assetIdInput',
'assetTypeTags':'geometry|alembic',
'fileTypes':'abc',
'help':"""Specify the ... an Alembic (.abc) file."""
}
}
15 WRAPPING SGG PLUG-INS IN A CUSTOM NODE | SPECIFYING UI HINTS